Docker container prune

1 개요[ | ]

docker container prune
  • 정지된 컨테이너들을 모두 제거하는 docker 명령어
root@default:~# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS                      PORTS               NAMES
24a4cb50222d        centos:7            "/bin/bash"         24 seconds ago       Created                                         mycentos2
e88ce57c3be2        centos:7            "/bin/bash"         About a minute ago   Up 45 seconds                                   mycentos
0967afc19f46        ubuntu:14.04        "/bin/bash"         3 hours ago          Exited (0) 12 minutes ago                       friendly_albattani
root@default:~# docker container prune
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Deleted Containers:
24a4cb50222d20ce10f4b5c0ee206c602f2af73c02a13bf138696247fc513475
0967afc19f4659d2f1a8bb8149ae853642f807cbbf66caba8f6c7b080785a280

Total reclaimed space: 14B
root@default:~# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS               NAMES
e88ce57c3be2        centos:7            "/bin/bash"         About a minute ago   Up 54 seconds                           mycentos
root@default:~#

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}