Fire and Emergency said three crews had been called to the wharf, where the chemical leak was reported about 5am on Sunday.
Firefighters worked with engineers to get the situation under control, and it was resolved about 8.30am.
There was no threat to the public, Fire and Emergency said.
Earlier on Sunday, about 4am, fire crews contained another ammonia leak at a meatworks in Lorneville, north of Invercargill.
This story was first published by RNZ