출처:https://medium.com/@BeNitinAgarwal/lifecycle-of-docker-container-d2da9f85959
- docker create
- docker create --name {container name} {image:tag}
- docker run
- docker run -it -d --name {container name} {image:tag} bash
- docker pause
- running 중인 컨테이너 일시중지
- docker pause {container-id||name}
- docker unpause
- docker unpause {container-id||name}
- docker start
- docker start {container-id||name}
- docker stop
- docker stop {container-id||name}
- docker restart
- docker restart {container-id||name}
- docker kill
- running중인 컨테이너 kill
- docker kill {container-id||name}
- docker rm
- 컨테이너 제거
- running 중이지 않은 컨테이너를 제거하기를 추천한다
- docker rm {container-id||name}