How to make container truck rotate accordingly and not swerve when turning along spline?

Hello,

I am creating a path for my container truck to follow using Unity spline but it seems that when the container is about to turn it swerves. I tried using configurable joint and hinge joint but both creates the same output. Is there a way to make the container to turn smoothly?

Thank you.