A federal judge says she may temporarily ban Carnival Corp. from docking its ships at US ports.

Carnival Corp. pleaded guilty to illegally releasing oil into the ocean and deliberately hiding it.

Carnival subsidiary Princess Cruises was ordered to pay $40 million as part of the settlement.

Carnival has since been on a 5-year probation, which allows a third-party inspector to examine its ships.

Prosecutors alleged that Carnival enacted a system designed to reduce chances of found violations.

Since the 2017 settlement, Carnival has also created false maintenance records, says Business Insider.

They also released waste into the ocean and in Alaska's Glacier Bay National Park.

US District Judge Patricia Seitz intends to decide whether to punish Carnival over the accusations.