Long Beach police and the fire department were called to the port, after receiving a call about an accident at Pier J.
The man, whose name was not released, was pronounced dead at the scene.
The Occupational Safety and Health Administration is investigating what caused the shipping container to fall on the man.