docker app* | Docker Application |
docker assemble* | Framework-aware builds (Docker Enterprise) |
docker builder | Manage builds |
docker cluster | Manage Docker clusters (Docker Enterprise) |
docker config | Manage Docker configs |
docker context | Manage contexts |
docker engine | Manage the docker Engine |
docker image | Manage images |
docker network | Manage networks |
docker node | Manage Swarm nodes |
docker plugin | Manage plugins |
docker registry* | Manage Docker registries |
docker secret | Manage Docker secrets |
docker service | Manage services |
docker stack | Manage Docker stacks |
docker swarm | Manage swarm |
docker system | Manage Docker |
docker template* | Quickly scaffold services (Docker Enterprise) |
docker trust | Manage trust on Docker images |
docker volume | Manage volumes |
Tag: Docker Cheat Sheet
This is Docker Cheat Sheet made for all developers. Docker is a set of the platform as a service product that uses OS-level virtualization to deliver software in packages called containers.
docker search searchterm | Search Docker Hub for images. |
docker pull user/image | Downloads an image from Docker Hub. |
docker login | Authenticate to Docker Hub (or other Docker registry). |
docker push user/image | Uploads an image to Docker Hub. You must be authenticated to run this command. |
docker build -t myimage:1.0 . | Build an image from the Dockerfile in the current directory and tag the image |
docker image ls | List all images that are locally stored with the Docker Engine |
docker image rm alpine:3.4 | Delete an image from the local image store |
docker pull myimage:1.0 | Pull an image from a registry |
docker tag myimage:1.0 myrepo/ | Retag a local image with a new image name and tag |
docker push myrepo/myimage:2.0 | Push an image to a registry |
docker container run --name web -p | Run a container from the Alpine version 3.9 image, name the running container “web” and expose port 5000 externally, mapped to port 80 inside the container. |
docker container stop web | Stop a running container through SIGTERM |
docker container kill web | Stop a running container through SIGKILL |
docker network ls | List the networks |
docker container ls | List the running containers (add –all to include stopped containers) |
docker container rm -f $(docker ps -aq) | Delete all running and stopped containers |
docker container | Print the last 100 lines of a container’s logs |
docker ps | List all running containers. |
docker ps -a | List all container instances, with their ID and status. |
docker images | Lists all images on the local machine. |
docker history user/image | Lists the history of an image. |
docker logs [container name or ID] | Displays the logs from a running container. |
docker port [container name or ID] | Displays the exposed port of a running container. |
docker diff [container name or ID] | Lists the changes made to a container. |