Skip to content

Latest commit

 

History

History
executable file
·
30 lines (20 loc) · 669 Bytes

008-Push-Pull-to-Dockerhub.md

File metadata and controls

executable file
·
30 lines (20 loc) · 669 Bytes

Pushing/Pulling an Image to/from a Container Registry

Let's use Dockerhub as our example.

Once you've set up a Dockerhub account., you can now login through the terminal.

$ docker login

Assuming the image is tagged, the final step is to push the image to a registry.

$ docker push NAME[:TAG]

For example, to push the sample Python hello-world application tagged with v1 to 'my-repo' repository in DockerHub

$ docker push my-repo/python-helloworld:v1.0.0

To pull an image from DockerHub,

$ docker pull NAME[:TAG]

Back to first page