During the strike, both sides said salaries, vacation, pensions and other benefits were not a major issue.
The clerks, who make an average base salary of $87,000 a year, have some of the best-paying blue-collar jobs in the nation. When vacation, pension and other benefits are factored in, the employers said, their annual compensation package reached $165,000 a year.
"We know we're blessed," one of the strikers, Trinnie Thompson, said during the walkout. "We're very thankful for our jobs. We just want to keep them."
Union leaders said if future jobs were not kept at the ports, the result would be another section of the U.S. economy taking a serious economic hit so that huge corporations could increase their profit margins by exploiting people in other states and countries who would be forced to work for less.
Combined, the Los Angeles and Long Beach ports handle about 44 percent of all cargo that arrives in the U.S. by sea. About $1 billion a day in merchandise, including cars from Japan and computers from China, flow past its docks.
Shuttering 10 of the ports' 14 terminals kept about $760 million a day in cargo from being delivered, according to port officials. The cargo stacked up on the docks and in adjacent rail yards or, in many cases, remained on arriving ships. Some of those ships were diverted to other ports along the West Coast.
"We're delighted that the terminals will be operating again, that the cargo will be flowing," said Berry.
The clerks handle such tasks as filing invoices and billing notices, arranging dock visits by customs inspectors, and ensuring that cargo moves off the dock quickly and gets where it's supposed to go.
The $1 billion a day in cargo that moves through the busy port terminals is loaded on trucks and trains that take it to warehouses and distribution centers across the country.
AP writer Andrew Dalton contributed to this report.