Picture of Rens Hoskens

Rens Hoskens

Full stack Java developer with great interest in everything IT related.

Connect docker to a Nexus OSS registry

Facebook
Twitter
LinkedIn
Telegram

After setting up a custom docker registry on Nexus OSS, you might want to connect your docker client to it. It is very easy to do so, I’ll explain how.

First, you’ll want to fetch the URL of the repository. In my case it is http://192.168.0.10:8181 (I know, it’s not secure).

Next, add it to the docker configuration file, called /etc/docker/daemon.json

{
    "insecure-registries": ["http://192.168.0.10:8181"],    
    "registry-mirrors": ["http://192.168.0.10:8181"]
}

 

Since this is a non-https connector, I also have to add it to the insecure-registries block. If your repository is running on HTTPS, that is not needed.

Finally, restart your docker daemon and pull an image, it will be fetched from your own repository!

Facebook
Twitter
LinkedIn
Telegram

More to explore

Rens Hoskens

K3s: Kubernetes made easy

Kubernetes is used in a lot of companies. But what if you have no experience with it? K3s by Rancher is the solution! Here I show you how to install and configure it.

Read More »
portainer
Rens Hoskens

How to install Portainer, a GUI for docker!

Docker is a great tool to manage small applications. But without a GUI it is not very user-friendly. Portainer to the rescue! Once you have installed Portainer in your docker environment, you’ll be presented with a GUI to manage all your docker containers.

Read More »