저번에는 오류 및 수많은 명령어들에 대해서 정리를 해봤는데 아직도 정리할게 남아서 이어서 정리를 하도록 하겠다.
docker run -p 4000:80 <imgname>
docker run -d -p 4000:80 imgname
docker run -rm -it <imgname> sh
docker exec -it [container-id] sh
dockeer stop <hash>
docker ps, docker ps -a
docker rm <hash>, docker rm $(docker ps -a -q)
docker kill <hash>
docker logs --tail 5 $container_name
docker inspect --format '{{.State.Health}}' $container_name
docker ps --filter "label=org.label-schema.group"
docker images, docker images -a
docker build -t username/image:<tag> .
docker push username/image:<tag>
docker history <image_name>
docker save <image_name> > my_img.tar
docker load -i my_imag.tar
docker tag <image> username/repo:tag
docker image build
docker logs --tail 5 $containeer_name
docker inspect --format '{{.State.Health}}' $container_name
docker ps, 모든 목록일 경우 : docker ps -a
docker ps --filter "label=org.label-schema.group"
docker images -a
docker pull ubuntu
apt-get update, apt-get install man
apt-get update, apt-get install iputils-ping
apt-get install dnsutils