무료 변환기

도커 명령 치트 시트

포괄적인 Docker 명령 치트 시트. 예제, 설명 및 원클릭 복사를 통해 70개 이상의 필수 Docker 명령을 검색하세요.

docker run
Create and start a new container from an image
예:docker run -d -p 80:80 --name web nginx
docker run -it
Run a container interactively with a terminal
예:docker run -it ubuntu bash
docker run --rm
Run a container and remove it automatically when it exits
예:docker run --rm alpine echo 'hello'
docker run -e
Set environment variables in a container
예:docker run -e NODE_ENV=production node:18
docker run -v
Mount a volume or bind mount into a container
예:docker run -v /host/path:/container/path nginx
docker start
Start one or more stopped containers
예:docker start my-container
docker stop
Stop one or more running containers gracefully
예:docker stop my-container
docker restart
Restart one or more containers
예:docker restart my-container
docker rm
Remove one or more stopped containers
예:docker rm my-container
docker rm -f
Force-remove a running container
예:docker rm -f my-container
docker ps
List running containers
예:docker ps
docker ps -a
List all containers including stopped ones
예:docker ps -a
docker exec
Run a command in a running container
예:docker exec -it my-container bash
docker logs
Fetch logs from a container
예:docker logs -f --tail 100 my-container
docker inspect
Return low-level information about a container or image
예:docker inspect my-container
docker stats
Display live resource usage statistics for containers
예:docker stats my-container
docker top
Display running processes inside a container
예:docker top my-container
docker pause
Pause all processes within a container
예:docker pause my-container
docker unpause
Unpause all processes within a paused container
예:docker unpause my-container
docker rename
Rename an existing container
예:docker rename old-name new-name
docker kill
Kill a running container by sending a signal
예:docker kill --signal=SIGTERM my-container
docker cp
Copy files between a container and the host filesystem
예:docker cp my-container:/app/config.json ./config.json
docker attach
Attach local I/O streams to a running container
예:docker attach my-container
docker pull
Download an image from a registry
예:docker pull nginx:latest
docker push
Upload an image to a registry
예:docker push myuser/myimage:v1.0
docker build
Build an image from a Dockerfile
예:docker build -t myapp:latest .
docker build --no-cache
Build an image without using the layer cache
예:docker build --no-cache -t myapp:latest .
docker images
List all locally available images
예:docker images
docker rmi
Remove one or more images
예:docker rmi nginx:old myimage:v1
docker tag
Create a tag referencing a source image
예:docker tag myapp:latest myuser/myapp:v2.0
docker history
Show the history of an image's layers
예:docker history nginx:latest
docker save
Save an image to a tar archive
예:docker save -o myimage.tar myapp:latest
docker load
Load an image from a tar archive
예:docker load -i myimage.tar
docker import
Import a tarball to create a filesystem image
예:docker import mycontainer.tar myimage:imported
docker export
Export a container's filesystem as a tar archive
예:docker export my-container > mycontainer.tar
docker commit
Create a new image from a container's changes
예:docker commit my-container myimage:snapshot
docker image prune
Remove unused (dangling) images
예:docker image prune -a
docker network create
Create a new network
예:docker network create --driver bridge my-network
docker network ls
List all networks
예:docker network ls
docker network rm
Remove one or more networks
예:docker network rm my-network
docker network inspect
Show detailed information about a network
예:docker network inspect my-network
docker network connect
Connect a running container to a network
예:docker network connect my-network my-container
docker network disconnect
Disconnect a container from a network
예:docker network disconnect my-network my-container
docker network prune
Remove all unused networks
예:docker network prune
docker volume create
Create a named volume
예:docker volume create my-volume
docker volume ls
List all volumes
예:docker volume ls
docker volume rm
Remove one or more volumes
예:docker volume rm my-volume
docker volume inspect
Display detailed information about a volume
예:docker volume inspect my-volume
docker volume prune
Remove all unused local volumes
예:docker volume prune
docker compose up
Create and start all services defined in compose file
예:docker compose up -d
docker compose down
Stop and remove containers, networks from compose
예:docker compose down --volumes
docker compose ps
List containers for a compose project
예:docker compose ps
docker compose logs
View output from compose service containers
예:docker compose logs -f web
docker compose build
Build or rebuild services defined in compose file
예:docker compose build --no-cache web
docker compose pull
Pull service images defined in the compose file
예:docker compose pull
docker compose restart
Restart service containers
예:docker compose restart web
docker compose exec
Execute a command in a running service container
예:docker compose exec web bash
docker compose run
Run a one-off command on a service
예:docker compose run --rm web npm test
docker compose stop
Stop running containers without removing them
예:docker compose stop web
docker compose config
Validate and view the merged compose configuration
예:docker compose config
docker info
Display system-wide Docker information
예:docker info
docker version
Show the Docker client and daemon version
예:docker version
docker system df
Show disk usage by Docker objects
예:docker system df -v
docker system prune
Remove all unused Docker resources at once
예:docker system prune -a --volumes
docker events
Stream real-time events from the Docker daemon
예:docker events --filter type=container
docker login
Log in to a Docker registry
예:docker login registry.example.com
docker logout
Log out from a Docker registry
예:docker logout registry.example.com
docker search
Search Docker Hub for images
예:docker search --filter stars=100 nginx
docker context ls
List available Docker contexts
예:docker context ls
docker context use
Switch the active Docker context
예:docker context use my-remote-host

이 도구에 대하여

docker 명령에 대한 포괄적인 빠른 참조 가이드입니다. 일반적으로 사용되는 명령, 구문, 예제를 범주별로 정리하여 찾아보세요. 검색 가능하고 모바일 친화적입니다. 빠른 알림이 필요할 때 즉시 액세스할 수 있도록 이 페이지를 북마크에 추가하세요.

사용 방법

  1. 분류된 참조 섹션을 찾아보세요.
  2. 검색창을 사용하여 특정 명령이나 구문을 찾으세요.
  3. 사용 예와 설명을 보려면 항목을 클릭하세요.
  4. 터미널이나 편집기에서 사용할 수 있도록 명령을 직접 복사하세요.

자주 묻는 질문

이 참조가 최신인가요?
이 참조는 여러 버전에서 안정적으로 널리 사용되는 명령과 구문을 다루고 있습니다. 최신 추가 사항이나 버전별 기능에 대해서는 공식 문서를 확인하세요.
이것을 오프라인으로 사용할 수 있나요?
페이지가 로드되면 인터넷 연결 없이도 페이지가 작동합니다. 빠른 액세스를 위해 북마크에 추가하세요. 추가 네트워크 요청 없이 모든 콘텐츠가 브라우저에서 렌더링됩니다.
이것은 포괄적입니까, 아니면 단지 기본입니까?
일상적인 작업의 90%를 처리하는 가장 일반적으로 사용되는 명령과 패턴을 다룹니다. 틈새 또는 고급 기능에 대해서는 공식 문서를 참조하세요.
추가 사항을 제안할 수 있나요?
우리는 정기적으로 참조를 업데이트합니다. 누락된 명령을 발견했거나 제안 사항이 있는 경우 연락처 페이지를 통해 알려주십시오.