# 우분투 컨테이너 실행
docker run -d --privileged --name ubuntu -p 22:22 -it ubuntu:20.04
docker run -d --privileged --name ubuntu -p 22:22 -it woogie/ubuntu:20.04 /sbin/init
# remove all unused images
# By default, you are prompted to continue. To bypass the prompt, use the -f or --force flag.
docker image prune -a
# docker exec -it <CONTAINER ID> /bin/bash 로 접속 안될 때
docker exec -it <CONTAINER ID> sh
# 도커 컨테이너 원하는 컬럼만 추출
docker container ls --all --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}"