728x90
๋ฐ์ํ
์ค๋ช
๐ ํ๋ ์ด์์ ์ปจํ ์ด๋ ์ญ์
์ฌ์ฉ๋ฒ
$ docker rm [OPTIONS] CONTAINER [CONTAINER...]
์ต์
Option | Short | Default | Description |
--force | -f | Force the removal of a running container (uses SIGKILL) | |
--link | -l | Remove the specified link | |
--volumes | -v | Remove anonymous volumes associated with the container |
์์
$ docker rm /redis
/redis
# ์คํ์ค์ธ ์ปจํ
์ด๋ ๊ฐ์ ์ ๊ฑฐ
$ docker rm --force redis
redis
# ๋ณด๋จ ์๋๋ฅผ ๊ถ์ฅ
$ docker stop /redis
$ docker rm /redis
๋ฐ์ํ