One can only get a dishonorable discharge as the result of a general court martial. Even then, it’s relatively rare.