Docker CLI Cheat Sheet
Images
Build an Image from a Dockerfile
Build an Image from a Dockerfile without the cache
List local images
Delete an Image
Remove all unused images
Containers
Create and run a container from an image, with a custom name
Run a container with and publish a container’s port(s) to the host
Run a container in the background
Start an existing container
Stop an existing container
Remove a stopped container
Open a shell inside a running container
Fetch and follow the logs of a container
To inspect a running container
To list currently running containers
List all docker containers (running and stopped)
View resource usage stats
Docker Hub
Login into Docker
Publish an image to Docker Hub
Search Hub for an image
Pull an image from a Docker Hub
General Commands
Start the docker daemon
Get help with Docker. Can also use –help on all subcommands
Display system-wide information