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




Contact Me

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 Articles
03 Sep 2024

macOS Sequoia 15.0

02 Sep 2024

Video: Has This Worked Before?

24 Mar 2024

Homelab: Mac Pro 2013 32GB

Recent Tweets