A great scene from "Down Periscope", relevant part starts at 1:00, but don't skip to it!
[youtube]https://www.youtube.com/watch?v=fNaQS3vDQc4[/youtube]
BTW, the boat is a real, Balao Class, WW2-vintage submarine. It's the USS Pampanito, a museum at SF. That scene was probably filmed in Suisun Bay, near Benicia and Martinez.