A truck driver has narrowly avoided jack-knifing his semi-trailer and rolling after driving erratically along a Sydney motorway.

In the footage captured on the M1, the truckie’s trailer comes close to rolling and even careers along on what appears to be a single wheel at one point.

Luckily there was no traffic overtaking as the vehicle continually careered into the second lane.

The truck was spotted on the M1. (Supplied)

Martin Urane was travelling from Morisset to Newcastle on Saturday when he and his passenger started filming the truckie’s erratic driving.

“Fair dinkum, it was pretty scary,” Mr Urane told nine.com.au. “I’ve seen truckies drift into the other lane but I’ve never seen anything like that before.”

Mr Urane, who said the truckie was driving in the unpredictable manner for about 10km, called traffic and highway patrol, who he said eventually caught up with the driver.

The footage shows the truck veering all over the road. (Supplied)

“I didn’t know how he didn’t roll. It was just lunacy,” he said, adding that he questioned whether driver fatigue was behind the driver’s behaviour.

“The reason I wanted to share it is to make truckies aware more of the fatigue.