Retailers are facing a shipping squeeze, and the trucking industry just can't keep up.

According to the American Trucking Associations, there's a shortage of roughly 50,000 truck drivers across the country. And it's hitting both businesses and consumers in the wallet.

Companies are complaining about how the driver shortage is impacting their business. Meanwhile, the cost of convenient shipping is starting to catch up with consumers.

Amazon recently hiked its Prime membership to $119 a year from $99 a year. The retail giant said one of the reasons for the price jump was increased shipping costs.

But the driver shortage isn't just because of demand created by online shopping. There's a lot going on behind the scenes, according to Bob Costello, chief economist at American Trucking Associations.

"We have a demographics problem, demand is strong, trucks haul over 70 percent of the freight tonnage, our average age is very high, [and] we don't have enough females," said Costello.

"So much of it revolves around demographics."

To be fair, the trucking lifestyle isn't exactly an easy sell. Truck drivers work long hours, they're away from home for weeks on end, and oftentimes sleep inside the trucks themselves.

Now, there's a new technology limiting the hours a truck driver can work in a given day – electronic logging devices (ELDs).