No results found
docker ps
List running containers
docker start <container>
Start a container
docker stop <container>
Stop a running container
docker restart <container>
Restart a container
docker rm <container>
Remove a stopped container
docker exec -it <container> <command>
Execute a command in a running container
docker logs <container>
Fetch logs from a container
docker inspect <container>
Return low-level information on a container
docker images
List Docker images
docker rmi <image>
Remove an image
docker build -t <image>:<tag> <path>
Build an image from a Dockerfile
docker pull <image>
Pull an image from a registry
docker push <image>
Push an image to a registry
docker tag <image>:<tag> <new_image>:<new_tag>
Tag an image
docker network ls
List all networks
docker network create <network>
Create a new network
docker network rm <network>
Remove a network
docker network inspect <network>
Inspect a network
docker volume ls
List all volumes
docker volume create <volume>
Create a new volume
docker volume rm <volume>
Remove a volume
docker volume inspect <volume>
Inspect a volume
docker-compose up
Start services defined in a docker-compose.yml file
docker-compose down
Stop and remove containers defined in a docker-compose.yml file
docker-compose logs
View logs from services defined in a docker-compose.yml file
docker-compose ps
List containers for a service defined in a docker-compose.yml file
This Docker Cheat Sheet is a powerful reference tool designed to help you quickly recall essential Docker commands. It is crucial for managing your containers, handling images, and orchestrating your Docker environment effectively. With just a glance, you can access the commands that enhance your container management workflow.
Docker commands are the building blocks of container management. They allow you to create, modify, and manage your Docker containers and images efficiently. This cheat sheet is particularly useful for both beginners and experienced developers, providing a quick reference to essential commands that streamline your development process.
Comprehensive Command List: Access various Docker commands.
Quick Reference: Find commands quickly, save time.
Best Practices: Learn effective Docker usage strategies.
Collaboration Tools: Use Docker for sharing and management.