As reported. while driving the vehicle at night the driver noticed smoke externally behind the truck, upon pulling over smoke started to enter the cab through the dash vents. The driver immediately exited the vehicle went to the front of the vehicle and opened the hood and smoke came from the engine compartment. A flame/fire could be seen in the engine compartment. 911 emergency services were called. In that time the truck engine compartment and cab burned completely.