From what I've been told, the local pilots does not bear any responsibility.
While I don't work on container ships, every time a pilot comes onboard our vessel (87m) we maintain control. The pilot provides guidance and assistance in navigation, but the captain or a bridge officer (depending on watch) is in control of the vessel.
I think liability is removed from the pilots because ultimately the ships captain is responsible for the ship, and the officer on watch is actually in control.