To be fair, many (all?) of these ships are burning https://en.wikipedia.org/wiki/Heavy_fuel_oil, which is not at all like petrol in that it requires preheating and atomisation to burn.
For the tar that a container ship burns, it's not going to be very volatile. Coal also burns quite well, but unless it's powdered, good luck trying to ignite some with just a match.