Carriers staggered under the enormous costs of the transition to container shipping, and some did not survive it. Ports literally had to rebuild themselves to handle containers in quantity, taking on entirely new roles developing and financing terminals of previously unimagined scale. Longshoremen almost everywhere lost their jobs in large numbers, although in many cases their unions resisted strongly enough to win compensation for acceding to the changes that would quickly reshape work on the docks.