Ten workers were onboard the ship, called the Helsinki Bridge, when it got away from the Paul J. Conley Container Terminal in South Boston early Wednesday morning.
The Massachusetts Port Authority tells The Boston Globe the ship drifted about 300 feet, damaging the end of the 88 Black Falcon Pier.
The Coast Guard says the workers were able to disembark, and a docking pilot steered the ship to Broad Sound along with the container ship's crew. No injuries were reported.
Officials say the ship was carrying general cargo. No pollution was reported.
An investigation is ongoing.
Copyright 2017 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.