- 
    
      RUNis an image build step, the state of the container after a RUN command will be committed to the container image.
      ADockerfilecan have manyRUNsteps that layer on top of one another to build the image.
 
- 
    
      CMDis the command the container executes by default when you launch the built image. ADockerfilewill only use the
      finalCMDdefined. TheCMDcan be overridden when starting a container withdocker run $image $other_command.
 
- 
    ENTRYPOINTis also closely related toCMDand can modify the way a container is started from an image.