Hundreds of people were crowded on the deck or taking shelter in empty containers.