"Docker container ls"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
(사용자 2명의 중간 판 10개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
{{소문자}}
;도커 / 컨테이너 목록보기
;도커 / 컨테이너 목록보기
;Docker / Listing Containers
;Docker / Listing Containers
*도커 컨테이너 리스트
* 도커 컨테이너 리스트
* 이것 대신 [[docker ps]]를 쓰면 된다...


==문법==
==문법==
<source lang='bash'>
<syntaxhighlight lang='bash'>
$ docker container ls [OPTIONS]
$ docker container ls [OPTIONS]
</source>
</syntaxhighlight>


==옵션==
==옵션==
31번째 줄: 33번째 줄:


==예시==
==예시==
<source lang='console'>
<syntaxhighlight lang='console'>
john:~$ docker container ls
john:~$ docker container ls
CONTAINER ID        IMAGE          COMMAND        CREATED          STATUS          PORTS        NAMES
CONTAINER ID        IMAGE          COMMAND        CREATED          STATUS          PORTS        NAMES
3a7a2a3fd9ea        ubuntu:16.04    "/bin/bash"    3 days ago        Up 3 days                    sad_joliot
3a7a2a3fd9ea        ubuntu:16.04    "/bin/bash"    3 days ago        Up 3 days                    sad_joliot
</source>
</syntaxhighlight>
:→ ubuntu:16.04 가 러닝 중임을 확인 할 수 있음


==같이 보기==
==같이 보기==
* [[도커]]
* [[도커]]
* [[docker ps]] ★
* [[docker container]]
* [[docker container]]
* [[docker volume ls]]
* [[docker container ls 와 docker ps 의 차이점]]


==참고==
==참고==

2021년 7월 25일 (일) 18:00 기준 최신판

1 개요[ | ]

도커 / 컨테이너 목록보기
Docker / Listing Containers
  • 도커 컨테이너 리스트
  • 이것 대신 docker ps를 쓰면 된다...

2 문법[ | ]

$ docker container ls [OPTIONS]

3 옵션[ | ]

Name, shorthand Default Description
--all , -a Show all containers (default shows just running)
--filter , -f Filter output based on conditions provided
--format Pretty-print containers using a Go template
--last , -n -1 Show n last created containers (includes all states)
--latest , -l Show the latest created container (includes all states)
--no-trunc Don’t truncate output
--quiet , -q Only display numeric IDs
--size , -s Display total file sizes

4 예시[ | ]

john:~$ docker container ls
CONTAINER ID        IMAGE           COMMAND        CREATED           STATUS          PORTS        NAMES
3a7a2a3fd9ea        ubuntu:16.04    "/bin/bash"    3 days ago        Up 3 days                    sad_joliot
→ ubuntu:16.04 가 러닝 중임을 확인 할 수 있음

5 같이 보기[ | ]

6 참고[ | ]

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