Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Docker 컨테이너 실행

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

...

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

Dockefile


Docker images volumedocker 네트워크 구조