Chuyển đổi miễn phí
Lệnh Docker Bảng gian lận
Bảng cheat lệnh Docker toàn diện. Tìm kiếm hơn 70 lệnh Docker cần thiết kèm theo ví dụ, mô tả và sao chép bằng một cú nhấp chuột.
docker run
Create and start a new container from an image
Ví dụ:
docker run -d -p 80:80 --name web nginxdocker run -it
Run a container interactively with a terminal
Ví dụ:
docker run -it ubuntu bashdocker run --rm
Run a container and remove it automatically when it exits
Ví dụ:
docker run --rm alpine echo 'hello'docker run -e
Set environment variables in a container
Ví dụ:
docker run -e NODE_ENV=production node:18docker run -v
Mount a volume or bind mount into a container
Ví dụ:
docker run -v /host/path:/container/path nginxdocker start
Start one or more stopped containers
Ví dụ:
docker start my-containerdocker stop
Stop one or more running containers gracefully
Ví dụ:
docker stop my-containerdocker restart
Restart one or more containers
Ví dụ:
docker restart my-containerdocker rm
Remove one or more stopped containers
Ví dụ:
docker rm my-containerdocker rm -f
Force-remove a running container
Ví dụ:
docker rm -f my-containerdocker ps
List running containers
Ví dụ:
docker psdocker ps -a
List all containers including stopped ones
Ví dụ:
docker ps -adocker exec
Run a command in a running container
Ví dụ:
docker exec -it my-container bashdocker logs
Fetch logs from a container
Ví dụ:
docker logs -f --tail 100 my-containerdocker inspect
Return low-level information about a container or image
Ví dụ:
docker inspect my-containerdocker stats
Display live resource usage statistics for containers
Ví dụ:
docker stats my-containerdocker top
Display running processes inside a container
Ví dụ:
docker top my-containerdocker pause
Pause all processes within a container
Ví dụ:
docker pause my-containerdocker unpause
Unpause all processes within a paused container
Ví dụ:
docker unpause my-containerdocker rename
Rename an existing container
Ví dụ:
docker rename old-name new-namedocker kill
Kill a running container by sending a signal
Ví dụ:
docker kill --signal=SIGTERM my-containerdocker cp
Copy files between a container and the host filesystem
Ví dụ:
docker cp my-container:/app/config.json ./config.jsondocker attach
Attach local I/O streams to a running container
Ví dụ:
docker attach my-containerdocker pull
Download an image from a registry
Ví dụ:
docker pull nginx:latestdocker push
Upload an image to a registry
Ví dụ:
docker push myuser/myimage:v1.0docker build
Build an image from a Dockerfile
Ví dụ:
docker build -t myapp:latest .docker build --no-cache
Build an image without using the layer cache
Ví dụ:
docker build --no-cache -t myapp:latest .docker images
List all locally available images
Ví dụ:
docker imagesdocker rmi
Remove one or more images
Ví dụ:
docker rmi nginx:old myimage:v1docker tag
Create a tag referencing a source image
Ví dụ:
docker tag myapp:latest myuser/myapp:v2.0docker history
Show the history of an image's layers
Ví dụ:
docker history nginx:latestdocker save
Save an image to a tar archive
Ví dụ:
docker save -o myimage.tar myapp:latestdocker load
Load an image from a tar archive
Ví dụ:
docker load -i myimage.tardocker import
Import a tarball to create a filesystem image
Ví dụ:
docker import mycontainer.tar myimage:importeddocker export
Export a container's filesystem as a tar archive
Ví dụ:
docker export my-container > mycontainer.tardocker commit
Create a new image from a container's changes
Ví dụ:
docker commit my-container myimage:snapshotdocker image prune
Remove unused (dangling) images
Ví dụ:
docker image prune -adocker network create
Create a new network
Ví dụ:
docker network create --driver bridge my-networkdocker network ls
List all networks
Ví dụ:
docker network lsdocker network rm
Remove one or more networks
Ví dụ:
docker network rm my-networkdocker network inspect
Show detailed information about a network
Ví dụ:
docker network inspect my-networkdocker network connect
Connect a running container to a network
Ví dụ:
docker network connect my-network my-containerdocker network disconnect
Disconnect a container from a network
Ví dụ:
docker network disconnect my-network my-containerdocker network prune
Remove all unused networks
Ví dụ:
docker network prunedocker volume create
Create a named volume
Ví dụ:
docker volume create my-volumedocker volume ls
List all volumes
Ví dụ:
docker volume lsdocker volume rm
Remove one or more volumes
Ví dụ:
docker volume rm my-volumedocker volume inspect
Display detailed information about a volume
Ví dụ:
docker volume inspect my-volumedocker volume prune
Remove all unused local volumes
Ví dụ:
docker volume prunedocker compose up
Create and start all services defined in compose file
Ví dụ:
docker compose up -ddocker compose down
Stop and remove containers, networks from compose
Ví dụ:
docker compose down --volumesdocker compose ps
List containers for a compose project
Ví dụ:
docker compose psdocker compose logs
View output from compose service containers
Ví dụ:
docker compose logs -f webdocker compose build
Build or rebuild services defined in compose file
Ví dụ:
docker compose build --no-cache webdocker compose pull
Pull service images defined in the compose file
Ví dụ:
docker compose pulldocker compose restart
Restart service containers
Ví dụ:
docker compose restart webdocker compose exec
Execute a command in a running service container
Ví dụ:
docker compose exec web bashdocker compose run
Run a one-off command on a service
Ví dụ:
docker compose run --rm web npm testdocker compose stop
Stop running containers without removing them
Ví dụ:
docker compose stop webdocker compose config
Validate and view the merged compose configuration
Ví dụ:
docker compose configdocker info
Display system-wide Docker information
Ví dụ:
docker infodocker version
Show the Docker client and daemon version
Ví dụ:
docker versiondocker system df
Show disk usage by Docker objects
Ví dụ:
docker system df -vdocker system prune
Remove all unused Docker resources at once
Ví dụ:
docker system prune -a --volumesdocker events
Stream real-time events from the Docker daemon
Ví dụ:
docker events --filter type=containerdocker login
Log in to a Docker registry
Ví dụ:
docker login registry.example.comdocker logout
Log out from a Docker registry
Ví dụ:
docker logout registry.example.comdocker search
Search Docker Hub for images
Ví dụ:
docker search --filter stars=100 nginxdocker context ls
List available Docker contexts
Ví dụ:
docker context lsdocker context use
Switch the active Docker context
Ví dụ:
docker context use my-remote-hostCông Cụ Liên Quan
Xem tất cả công cụLệnh Git Bảng gian lận
Bảng cheat lệnh Git toàn diện. Tìm kiếm hơn 80 lệnh Git cần thiết kèm theo ví dụ, mô tả và bản sao chỉ bằng một cú nhấp chuột.
Lệnh Vim Bảng gian lận
Bảng cheat lệnh Vim toàn diện. Tìm kiếm hơn 80 lệnh Vim cần thiết kèm theo ví dụ, mô tả và sao chép chỉ bằng một cú nhấp chuột.
Linux / Bash Bảng lệnh gian lận
Bảng cheat lệnh Linux và Bash toàn diện. Tìm kiếm hơn 80 lệnh cần thiết kèm theo ví dụ, mô tả và sao chép bằng một cú nhấp chuột.
Trình định dạng SQL & Làm đẹp
Định dạng, làm đẹp và dọn dẹp các truy vấn SQL ngay lập tức trong trình duyệt của bạn. Không cần tải lên - hoàn toàn riêng tư và miễn phí.