The ship did not hit the dock, it hit another ship that was probably being loaded. It also appears the ship was running under its own power and not tugs. To reverse a ship that size the engine is stopped and restarted in the opposite direction, a slow process...