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

39번째 줄: 39번째 줄:
==같이 보기==
==같이 보기==
* [[도커]]
* [[도커]]
* [[docker container]]


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

2018년 9월 25일 (화) 23:20 판

1 개요

도커 / 컨테이너 목록보기
Docker / Listing Containers
  • 도커 컨테이너 리스트

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

5 같이 보기

6 참고

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