That’s not a very good pic it has a big old dent in it. I figure the captain was drunk
At this point, the captain is by the nature of his position responsible for what happened and in charge of his vessel.
However, once an ocean going vessel near a port, a local harbor pilot takes over and bring the ship into port. Once a ship gets close to its berth, a docking pilot comes aboard and directs one or two tugboat to move the ship along side the dock; at that point the ship is secured by lines to the dock.
The captain doesn't park it.