Versions Compared

Key

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

...

Info
  • Docker hub로그인
Code Block
[root@lab-centos-on-docker-vm workspace]# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: sooabia
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

  • Docker hub에 업로드
Code Block
[root@lab-centos-on-docker-vm workspace]# docker push sooabia/sanse-tomcat9:2
The push refers to repository [docker.io/sooabia/sanse-tomcat9]
66e6933100ba: Pushed
b7d850202de0: Mounted from library/tomcat
d1d0b1719b96: Mounted from library/tomcat
48988bb7b861: Mounted from library/tomcat
edd61588d126: Mounted from library/tomcat
9b9b7f3d56a0: Mounted from sooabia/reactor-demo
f1b5933fe4b5: Mounted2: digest: sha256:7c98ffb33f01e4a67d1df8eb9dfa10792b61949c5636069eb504a06b14af110c size: 1781


Windows환경에서 실행해 보기

Info


Info
  • docker login
Code Block
D:\workspace>docker login
Authenticating with existing credentials...
Login Succeeded
  • docker pull sooabia/sanse-tomcat9:2
Code Block
D:\workspace>docker pull sooabia/sanse-tomcat9:2
2: Pulling from sooabia/
reactor-demo 2: digest
sanse-tomcat9
e7c96db7181b: Already exists
f910a506b6cb: Already exists
b6abafe80f63: Pull complete
d8c966ddef98: Pull complete
15b754e99755: Pull complete
4227393eb352: Pull complete
8a7c757fa46b: Pull complete
Digest: sha256:7c98ffb33f01e4a67d1df8eb9dfa10792b61949c5636069eb504a06b14af110c
size: 1781

Status: Downloaded newer image for sooabia/sanse-tomcat9:2
docker.io/sooabia/sanse-tomcat9:2
  • docker run -d -p 80:8080 sooabia/sanse-tomcat9:2
Code Block
D:\workspace>docker run -d -p 80:8080 sooabia/sanse-tomcat9:2
419278f73d6f110321c57d63a65606d363c545ae909ed39d09ce1ed834af1509


  • 실행결과 확인

Image Added