Some of the most commonly used docker commands are
Lists docker images on the host machine.
Builds image from Dockerfile.
Runs a Docker container.
There are many arguments which you can pass to this command for example,
docker run -d
-> Run container in background and print container ID
docker run -p
-> Port mapping
use docker run --help
to look into more arguments.
Lists running containers on the host machine.
Stops running container.
Starts a stopped container.
Removes a stopped container.
Removes an image from the host machine.
Downloads an image from the configured registry.
Uploads an image to the configured registry.
Run a command in a running container.
Manage Docker networks such as creating and removing networks, and connecting containers to networks.