- Builds, (re)creates, starts, and attaches to containers for a service
docker-compose up (-d : detached mode)
- delete with id
docker rmi [image id]
- list images
docker images
- build image
docker build –tag [tag-name] –build-arg [key]=[value] .
--no-cache
: 이미 빌드된 layer 재빌드 - push image
docker push [registry:tag]
- list running container
docker container ls
- run container
docker container run [-it : interactive mode] –publish [container port]:[host port] [-d] –name [name] -e [key]=[value]
- delete container
docker container rm (-f) [CONTAINER ID]
- run container
docker run –name [container name] [tag]
[Docker] 자주 사용하는 커멘드
This post is licensed under CC BY 4.0 by the author.
Comments powered by Disqus.