How To Use Private Docker Registry

Docker Docker

I’m working on another Unix Tutorial Project these days, to setup my own Docker registry. It’s not quite ready yet, but some findinds are ready to be captured.

How To Authenticate Against Private Docker Registry

$ docker login dcr.ts.fm

How To Pull an Image From Private Docker Registry

$ docker pull dcr.ts.fm/confluence

How To Push an Image To Private Docker Registry

As always: first, make sure we commit the running container into a local image. But we can make it include private registry name:

$ docker commit c74010b06784 dcr.ts.fm/mariadb

In this example c74010b06784 is my current DB container name, dcr.ts.fm is my private Docker registry name and mariadb is the image name in it.

Cool! Now let’s push it into my registry:

$ docker push dcr.ts.fm/mariadb

That’s it for today, enjoy!

See Also




Keep Learning

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!

Recent Tweets