© Petty Officer 3rd Class Nicholas V. Huynh USS Theodore Roosevelt (CVN 71)

The Navy says an outbreak of coronavirus aboard an aircraft carrier in the Pacific has forced it to divert to Guam, where all 5,000 aboard will undergo testing.

The USS Theodore Roosevelt remains "operationally capable," according to the acting secretary of the Navy, Thomas Modly.

Bing COVID-19 tracker: Latest numbers by country and state

Full coverage of the coronavirus outbreak

"Sailors flown off the ship are doing fine, none required hospitalization — mild aches and pains, sore throats," Modly said Thursday at a Pentagon press briefing, adding they were "in quarantine now on Guam."

Other officials said the number of infected sailors has risen sharply — from initial reports of three to "dozens" as of Thursday.

The carrier is the first U.S. Navy ship to have a reported an outbreak while at sea. About 800 test kits are aboard and more were being delivered, Modly said.