You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Docker 설치


Docker 관리

  • docker version
  • docker -v
  • service docker start
  • service docker stop
  • systemctl enable docker


Docker 이미지 생성

  • docker search centos
  • docker pull centos:7
  • docker images

Docker 컨테이너 실행

  • docker run -i -t --name CONTAINERNAME centos:7 /bin/bash
  • docker run -t -t --name CONTAINERNAME -p 8000:80 nginx
  • docker ps -a
  • exit , ctrl + P,Q
  • docker attach CONTAINERNAME
  • docker exec CONTAINERNAME
  • docker stop CONTAINERNAME && docker rm CONTAINERNAME, docker rmi CONTAINERNAME:first



Docker 이미지 관리

  • docker commit -a "jaesung" -m "my container" commitCONTAINERNAME newCONTAINERNAME:tag
  • docker tag IMAGENAME account/repository
  • docker images
  • docker login
  • docker push interparkdev/study:latest


Dockefile



Docker images volume


docker 네트워크 구조





  • No labels