Skip to content

Instantly share code, notes, and snippets.

@unk
Created Mar 25, 2018
Embed
What would you like to do?
docker ps
# 실행중인 컨테이너 목록이 다음과 같이 나옵니다.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ecc4804eabf7 ubuntu "/bin/bash" 57 seconds ago Up 59 seconds docker-container
# 실행중인 목록이 없을 경우 컨테이너가 정지되어 있는 겁니다.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
------
docker ps -a
# -a 옵션을 이용해 정지된 컨테이너까지 모두 표시합니다.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ecc4804eabf7 ubuntu "/bin/bash" 4 minutes ago Exited (0) 3 minutes ago docker-container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment