The Carnival Triumph broke loose from a dock in Mobile. Hours later, four tug boats used several mooring lines to secure the ship to the cruise terminal. There were some crew members and contractors onboard, but no one was hurt.
Authorities blame wind gusts with near-hurricane strength, which also knocked a nearby guard shack with two men inside into the water. One man was rescued. The two incidents were unrelated, the Coast Guard said. Both men work for BAE Systems, which runs the shipyard.
Authorities are unsure of how deep the water is where the men fell in, but Carnival Cruise Lines said on its website that its ship-repairing operation is adjacent to a 42-foot, deep-ship channel.
The Triumph was at the dock for repairs after being stranded off the coast of Mexico for five days in February following an engine fire.
The Associated Press contributed to this report.