When using Docker, you will encounter two major operations build and run . The build command creates a docker image based on the Dockerfile . The run command uses the created docker image to run a container.