"Docker rm"의 두 판 사이의 차이

 
27번째 줄: 27번째 줄:
* [[docker create]]
* [[docker create]]
* [[docker 명령어]]
* [[docker 명령어]]
* [[docker rm --force]]
* [[docker rm --force $(docker ps -aq)]]
* [[docker rm --force $(docker ps -aq)]]
* [[kubectl delete]]
* [[kubectl delete]]


[[분류: docker]]
[[분류: docker]]

2019년 5월 29일 (수) 15:51 기준 최신판

1 개요[ | ]

docker rm
root@default:~# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
915fc132bee4        centos:7            "/bin/bash"         2 hours ago         Up 4 minutes                            mycentos
root@default:~# docker rm mycentos
Error response from daemon: You cannot remove a running container 915fc132bee49e6b53604ed4df4dbb7896609b8d4a87f987bc9b976a64edb7a9. Stop the container before attempting removal or force remove
root@default:~# docker stop mycentos
mycentos
root@default:~# docker rm mycentos
mycentos

2 같이 보기[ | ]

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