Private Docker Registry

I’ve recently started using a private docker registry for some docker images i’ve been using for certain projects that require special setup.

To create the image

docker build -t docker.example.com/directory/image:tag .

Then I find the ID of the image using

docker image ls

Then when i’ve got the image ID I can tag the image

docker tag 12345678 docker.example.com/directory/image:tag

After that I can then push to the repository

docker push docker.example.com/directory/image:tag

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *