Docker commands
docker --help
- It show the list of commands
docker images
- It shows the list of available docker images
docker ps -a
- It shows the list of containers
docker system prune -a
- It removes all unused containers
docker build image .
- An image is built on the basis of the instructions written in the
Dockerfile (the name of the file must be Dockerfile) created
in the directory where docker is launched (the "." means that the
Dockerfileis there)
docker run -it imagename bash
- The command runs the docker image imagename in an interactive
mode running a bash shell