- docker run: Creates and runs a container from an image.
- docker build: Builds a Docker image from a Dockerfile.
- docker pull: Pulls an image from a registry.
- docker push: Pushes an image to a registry.
- docker ps: Lists running containers.
- docker images: Lists available images.
- docker start: Starts one or more stopped containers.
- docker stop: Stops one or more running containers.
- docker restart: Restarts a container.
- docker rm: Removes one or more containers.
- docker rmi: Removes one or more images.
- docker exec: Runs a command in a running container.
- docker logs: Displays the logs of a container.
- docker inspect: Returns low-level information on Docker objects.
- docker container prune: Removes all stopped containers.
- docker image prune: Removes unused images.
- docker volume prune: Removes unused volumes.
- docker network prune: Removes unused networks.
- docker system prune: Removes unused containers, images, volumes, and networks.
- docker cp: Copies files/folders between a container and the host.
- docker-compose up: Builds, creates, and starts containers defined in a Docker Compose file.
- docker-compose down: Stops and removes containers defined in a Docker Compose file.
- docker-compose logs: Displays the logs of containers defined in a Docker Compose file.
- docker-compose exec: Runs a command in a running container defined in a Docker Compose file.
- docker-compose build: Builds images defined in a Docker Compose file.
- docker-compose stop: Stops containers defined in a Docker Compose file without removing them.
- docker-compose restart: Restarts containers defined in a Docker Compose file.
- docker-compose pull: Pulls images defined in a Docker Compose file.
- docker-compose down --volumes: Stops and removes containers and volumes defined in a Docker Compose file.
- docker-compose config: Verifies the syntax of a Docker Compose file.
- docker inspect: Returns low-level information on Docker objects, including containers, images, volumes, and networks.
- docker stats: Displays live CPU, memory, network, and disk usage of running containers.
- docker top: Displays the running processes inside a container.
- docker attach: Attaches to a running container's standard input, output, and error streams.
- docker login: Logs in to a Docker registry.
- docker logout: Logs out from a Docker registry.
- docker tag: Tags an image with a repository name.
- docker network create: Creates a network for containers to communicate.
- docker network connect: Connects a container to a network.
- docker network disconnect: Disconnects a container from a network.
- docker volume create: Creates a volume to persist data.
- docker volume inspect: Displays detailed information about a volume.
- docker volume ls: Lists volumes.
- docker volume rm: Removes one or more volumes.
- docker pause: Pauses all processes within a container.
- docker unpause: Unpauses all processes within a container.
- docker save: Saves an image to a tar archive.
- docker load: Loads an image from a tar archive.
- docker export: Exports the contents of a container's filesystem as a tar archive.
- docker import: Imports the contents of a tar archive as a new Docker image.
Experienced IT professional | 3x Google Cloud certified | ITIL 4 Certified | Expertise in Cloud, DevOps, Linux, Python and ITSM
1 年Helpful