Docker command referenceΒΆ

Some frequently used docker commands for reference:

  • docker images - show all docker images in current docker host
  • docker rmi <IMAGE ID> - remove docker image with <IMAGE ID>
  • docker ps - show all docker container of current docker host
  • CTRL+p, CTRL+q - exit the current container and return to docker host terminal
  • docker stop <container_id> - will stop the container and so the server inside the container will be stopped
  • docker rm -f <CONTAINER ID> - stop and delete docker container with <CONTAINER ID>