docker
docker <subcommand> --help
docker version
docker info
docker run hello-world
docker image ls
docker container ls
docker container ls --all
docker container ls -aq
docker build -t <tag_name> <path/to/dockerfile>
-i
: Keeps stdin open-t
: Allocates a tty-d
: Run the container in background-p
: Ports binding
docker run -itd -p <external_port>:<container_port> <tag_name>
docker container rm -f <container_name>
--all
: Remove all unused images
docker system prune --all