도커 컨테이너 목록 조회 docker ps

Jmnote (토론 | 기여)님의 2017년 11월 17일 (금) 13:34 판 (→‎개요)

1 개요

docker ps
root@default:~# docker start mycentos
mycentos
root@default:~# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
915fc132bee4        centos:7            "/bin/bash"         8 minutes ago       Up 1 second                             mycentos
root@default:~# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                   PORTS               NAMES
915fc132bee4        centos:7            "/bin/bash"         2 hours ago         Up 16 seconds                                mycentos
0967afc19f46        ubuntu:14.04        "/bin/bash"         2 hours ago         Exited (0) 2 hours ago                       friendly_albattani
root@default:~# docker stop mycentos
mycentos
root@default:~# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
root@default:~# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                       PORTS               NAMES
915fc132bee4        centos:7            "/bin/bash"         2 hours ago         Exited (137) 6 seconds ago                       mycentos
0967afc19f46        ubuntu:14.04        "/bin/bash"         2 hours ago         Exited (0) 2 hours ago                           friendly_albattani

2 같이 보기

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