Versions Compared

Key

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

Image Removed

Push

...

Image Added


https://hub.docker.com/

Tag:

https://docs.docker.com/engine/reference/commandline/tag/#parent-command

root@docker-lab:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
busybox latest c30178c5239f 4 days ago 1.11MB


root@docker-lab:~# docker tag busybox:latest jlk0013/demo-example


root@docker-lab:~# docker images
REPOSITORY                      TAG        IMAGE ID         CREATED SIZE
jlk0013/demo-example     latest     c30178c5239f 4 days ago 1.11MB
busybox                               latest     c30178c5239f 4 days ago 1.11MB


Push ( + login )

https://docs.docker.com/engine/reference/commandline/login/

docker login 


root@docker-lab:~# docker login -u jlk0013
Password:
Login Succeeded


https://docs.docker.com/engine/reference/commandline/push/


Pull

root@docker-lab:~# docker push jlk0013/demo-example:v1
The push refers to a repository [docker.io/jlk0013/demo-example]
3a1dff9afffd: Pushed
v1: digest: sha256:be3c11fdba7cfe299214e46edc642e09514dbb9bbefcd0d3836c05a1e0cd0642 size: 527
root@docker-lab:~# 


Image Added