A tentative agreement between a dockworkers union and a shippers association was announced Wednesday night, averting a Jan.