Docker command reference

Some frequently used docker commands for reference:

  • docker images - Show all of the docker images in the current Docker host.

  • docker rmi <IMAGE ID> - Remove docker image with <IMAGE ID>.

  • docker ps - Show all the Docker containers of the current Docker host.

  • CTRL+p, CTRL+q - Exit the current container and return to Docker host terminal

  • docker stop <container_id> - Stop the container, including the server inside the container.

  • docker rm -f <CONTAINER ID> - Stop and delete the Docker container with <CONTAINER ID>.