...
Command | Description |
---|---|
docker images | List all docker images |
docker search <patial_image_name> | Searches Repo for images containing the name specified |
docker run -i -t ubuntu:12.10 bash | Download ubuntu 12.10 image and run bash |
docker pull <image> | Download an image from docker repo |
docker inspect <image> | Inspect docker image |
docker rmi <image> <image> | Remove one or more images |
docker login docker push <image> | Submit an image to docker's repo. |
docker build -f Dockerfile . | Build a docker image from a Dockerfile |
docker commit <containerID> <imageName> | Saves the container to an image |
docker save -o image.tar <imageName> | Save an image to a tar file. |
docker load -i image.tar | Load an image from a tar file. |
docker system prune -a | Remove any stopped containers and all unused images |
docker image tag <image> <DOCKER_REPO>/<image> | Tag and push an image to a new container registry. |
System Commands
docker system prune -a | Remove any stopped containers and all unused images |
docker volume prune | Remove volumes |
...