Because he represents an authority figure in your waking life, dreams of captains may represent an aspect of your personality that is steering you (the ship or airplane) in the right direction. It is important to decide if your dream captain or admiral was decisive and in command, or weak and indecisive. A symbol of the Jungian archetypal hero, the soldier is a symbol of the desire to succeed in life. Freudians may see this symbol as an expression of sexual desire. Sailors, by contrast, express the more adventurous aspects of your personality.
They live and work at sea, a Jungian symbol of the unconscious, so the dream may suggest a desire to explore your inner self.
[1]