Files
container.training/slides/swarm/testingregistry.md
Jérôme Petazzoni 8decf1852f Refactor build-tag-push
We now have two clean classes: btp-manual and btp-auto

Exclude one or the other depending on whether you want to
show the full process of building and pushing images, or
if you want to shortcut and use stack files directly.
2017-11-07 19:43:42 -08:00

621 B

Testing our local registry

  • We can retag a small image, and push it to the registry

.exercise[

  • Make sure we have the busybox image, and retag it:

    docker pull busybox
    docker tag busybox 127.0.0.1:5000/busybox
    
  • Push it:

    docker push 127.0.0.1:5000/busybox
    

]


Checking what's on our local registry

  • The registry API has endpoints to query what's there

.exercise[

  • Ensure that our busybox image is now in the local registry:
    curl http://127.0.0.1:5000/v2/_catalog
    

]

The curl command should now output:

{"repositories":["busybox"]}