Destination Tokyo (1943) released during WWII features a submarine crew headed for Tokyo bay and the problems they encounter getting in and getting out. The views expressed about the Japanese people seem excessive to me but perhaps a apt accounting of how people felt at the time. Cary Grant plays Captain Cassidy in cast that also includes John Garfield and Allan Hale and John Forsythe.
Operation Petticoat (1959) again finds Cary Grant as a submarine commander with a perhaps a bit less spit-spot crew. Though in their defense they are trying to save their ship and the war does send rather bizarre challenges their way. Tony Curtis is a less than fully committed Lt. JG Nicholas Holden, also watch for a young Gavin MacLeod and Marion Ross.