Although close access to ships when they are docked is usually restricted, there are often public places close by which are perfect for shipspotting. Here in the UK there are plenty of public areas overlooking harbours, on river banks, estuaries, etc where decent ship photos can be had.
Brgds
Phil