I agree.
Even an arms locker on board would help. If I was a merchant seaman I'd be looking to buy a weapon at the first port of call.
In this particular case the boat full of Somali's followed the Maersk wossname for 4 hours before catching up to board and when they did they fired they nice shiney (ahem) AK-47s in the air. Bearing in mind just how choppy it can get in a little boat.....and how stable a big ship is in the same water, 1 fella taking pot shots at em for the 4 hours it took em to catch up might just put the ******* off the idea.
Ya don't want ships with jumpy crew having access to a weapon that can sink another boat cos you know what'll happen, some small boat (possibly not even Somalian) would get sunk and there'd be hell to pay. No, small arms is all you need.
Apparently on the Maersk wossname the chief engineer offered to show a Somali around the engine room and when they got down there he hit him with an ice pick. Nice

.
There'll probably be a film made about this.