Refers specifically to the pilot in command of an airplane or helicopter. Not used for ship captains (船長) or other types of captains.
機長が乗客に挨拶をした。
The captain greeted the passengers.
He has served as a captain on international flights for many years.
He is serving as the captain of this flight.
There was an announcement from the captain.
The passengers followed the captain's instructions.