Pull
Pull in an image from the registry.
docker pull <imageName>:<tag>Run
Run an image that has been downloaded with pull. Names the running image after the given --name argument.
docker run -t -d -p <hostPort>:<containerPort> --name <containerName> <imageName>-tallocates a pseudo terminal for the container-ddetaches the process so that it runs in the background-pcreates a host to container port mapping
Ps
List out the running containers.
docker psExec
Execute on a running container.
docker exec -it <containerName> <programName>(program name depends on the image, but common options are bash or sh)
-itcondenses-iallows interaction with the container, and-twhich creates a pseudo terminal and displays it on your screen
Stop
Shutdown a container process.
docker stop <containerName>Start
Start a previously stopped and idling container.
docker start <containerName>Stats
Display stats on usage for memory, CPU, network etc. for each container.
docker statsWhy are docker containers so much faster than VMs?
The short answer is that docker containers can share the same kernel with the host operating system.