No, docked ships are not always "external". I use a casing system on my ships where only the front most face of the gun is exposed. Basically, you can cover the whole thing with the main ship, so long as the front is exposed enough for the shots to come out. Switching them out can be a pain, but...