The boat, organized by the International Organization for Migration, seeks to help non-Libyans seeking to leave Libya whose home countries do not have the means to evacuate them.

Most people said they planned to return to their jobs in Libya once the situation calmed down.

Since rebels swept Tripoli a week ago, the usual routes to the Tunisian border have been closed and the capital has been wracked by shortages and sporadic fighting.

In the beginning of the uprising against the government in February, hundreds of thousands of foreign workers fled the country.