Liner docks after pirate attack