Dozer operator stated that saw flames coming out of the right side engine compartment. EE got out and began using fire extinguisher but was not able to suppress fire. An excavator was then used to cover the fire and put it out. Fire was limited to Dozer only.