An impasse in discussions over an expiring contract has dockworkers readying for a strike that could leave containers piling up at ports along the East and Gulf Coasts, force cargo ships to sit in harbors until it clears, and scramble routes for agricultural goods at a critical time of year for farmers.