Listed below is a list of docker command: You can also access this file from Github at https://github.com/technozeal/DockerCheatSheet Test Run docker run hello-world Docker Pull # Download docker image without running it docker pull <image_name> Example: docker pull alpine docker pull hello-world docker pull ubuntu docker pull centos docker pull python docker pull python:3.7-slim Docker Run # Run docker image docker run <image_name> docker run <image_name> <command> docker run -d --name <container_name> <image_name> #-d is to detached from terminal and run in the background, suitable for server #--name name the container docker run -d --name <container_name> -p 80:80 <image_name> <command> #-p map the network port from the host to the container docker run -it <image_name> <command> # -i is for interactive session # -t is to create a tty for user interaction # usually use -it docker ...