Versions Compared

Key

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

...

  • 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 commit -a "jaesung" -m "my container" commitCONTAINERNAME newCONTAINERNAME:tag
  • docker tag IMAGENAME account/repository
  • docker images
  • docker login
  • docker push myAccountinterparkdev/containerNamestudy:latest


Dockefile



Docker images volume

...