ubuntu 18.04에서 docker-ce로 깐건데.. 이상하네
$ sudo docker help ps Usage: docker ps [OPTIONS] List containers Options: -a, --all Show all containers (default shows just running) -f, --filter filter Filter output based on conditions provided --format string Pretty-print containers using a Go template -n, --last int Show n last created containers (includes all states) (default -1) -l, --latest Show the latest created container (includes all states) --no-trunc Don't truncate output -q, --quiet Only display numeric IDs -s, --size Display total file sizes |
요거야 원래 옵션이고 도는 놈들만(run) 보여주는거니 문제 안되는데
$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
읭.. -a과 --all이 같은거였나. -all이 아니었냐.. 아무튼 얘는 죽은것도 보여줌
$ sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4fdb1194f2c6 httpd "-d" 6 minutes ago Created 80/tcp blissful_sinoussi d913540567fc httpd "httpd-foreground" 6 minutes ago Exited (0) 6 minutes ago admiring_colden 8c8c15aee063 mysql "docker-entrypoint.s…" 7 minutes ago Exited (1) 7 minutes ago quirky_fermi 54eb43ad0783 atmoz/sftp "/entrypoint" 8 minutes ago Exited (3) 7 minutes ago elegant_napier |
$ sudo docker ps --all CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4fdb1194f2c6 httpd "-d" 6 minutes ago Created 80/tcp blissful_sinoussi d913540567fc httpd "httpd-foreground" 6 minutes ago Exited (0) 6 minutes ago admiring_colden 8c8c15aee063 mysql "docker-entrypoint.s…" 7 minutes ago Exited (1) 7 minutes ago quirky_fermi 54eb43ad0783 atmoz/sftp "/entrypoint" 8 minutes ago Exited (3) 7 minutes ago elegant_napier |
얘는 일단 잘못된 옵션인데.. -a랑도 다르게 나오고 머지?
$ sudo docker ps -all CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4fdb1194f2c6 httpd "-d" 6 minutes ago Created 80/tcp blissful_sinoussi |
'프로그램 사용 > docker' 카테고리의 다른 글
docker run -p hport:cport (0) | 2019.06.13 |
---|---|
docker api (0) | 2019.06.12 |
docker 컨테이너 이미지 이름으로 검색하기 (0) | 2019.06.10 |
docker create와 docker rm (0) | 2019.05.30 |
docker 자원 제한하기 (0) | 2019.05.17 |