Wednesday, October 28, 2026
HomeCloud ComputingThe best way to add an authenticated DockerHub registry to Portainer

The best way to add an authenticated DockerHub registry to Portainer

[ad_1]

Portainer is an effective way to assist make Docker container improvement far more environment friendly. If your organization has an official DockerHub registry, you must join the 2. Jack Wallen reveals you ways.

View of a Server room data center - 3d rendering
Picture: Manufacturing Perig/Shutterstock

Portainer is without doubt one of the finest instruments for managing your Docker container deployments. With a really user-friendly, web-based GUI, this software makes working with photos, registries, networks, stacks and extra significantly simpler than attempting to deal with the job from the command line.

SEE: Enterprise leaders as developer: The rise of no-code and low-code software program (free PDF) (TechRepublic)

However out of the field, Portainer is about to tug photos from nameless DockerHub. That is problematic for 2 causes. First, it may very well be a safety problem. You don’t need your builders to be willy-nilly knocking down simply any container picture, as you by no means know if it would include malicious code. The second motive is you may need an organization repository that comprises photos your builders have both constructed from scratch or developed from different, official photos.

Both manner, when you have a DockerHub account, you must positively join it with Portainer.

Let me present you ways.

What you’ll want

To make this work, you’ll want a working occasion of Portainer, admin credentials for Portainer, in addition to a DockerHub account. That’s it … let’s make this connection.

The best way to create a DockerHub entry token

The very first thing it’s essential to do is create a DockerHub entry token, which will probably be used instead of a password. Log into your organization DockerHub account, click on on the profile icon, and choose Account Settings. Within the ensuing window, click on Safety within the left navigation after which click on New Entry Token (Determine A).

Determine A

Creating a DockerHub access token is required in order to connect to Portainer.
Making a DockerHub entry token is required so as to hook up with Portainer.

When you’ve created your entry token, be certain to repeat the string of characters (as that will probably be used to your account password).

The best way to join Portainer to your DockerHub account

Log into Portainer and click on Registries from the left sidebar. Within the ensuing window click on Add registry (Determine B).

Determine B

You can add as many registries as you need to Portainer (even multiple DockerHub accounts).
You may add as many registries as it’s essential to Portainer (even a number of DockerHub accounts).

Within the Add Registries window (Determine C), click on DockerHub on the high.

Determine C

The Portainer Add Registries window allows you to add numerous types of registries.
The Portainer Add Registries window means that you can add quite a few kinds of registries.

Sort a reputation to your registry, then add your DockerHub username (this isn’t the e-mail deal with related to the account, however the precise username), after which paste the entry token within the password discipline. When completed, click on Add registry to save lots of the data.

The best way to use the brand new registry

Let’s say you have got a picture in your organization DockerHub registry named nginx-template that’s tagged with newest. If you wish to pull that picture to Portainer, do the next:

Click on Photos within the left navigation.

Within the Registry drop-down, choose the DockerHub registry you simply added (Determine D).

Determine D

Pulling down a specific image from your authenticated DockerHub registry.
Flattening a selected picture out of your authenticated DockerHub registry.

Within the Picture discipline, you’ll sort one thing like NAME/nginx-template:newest (the place NAME is both the person or firm title related to the picture).

Click on Pull the picture.

And that’s all there may be to including and utilizing an authenticated DockerHub registry to Portainer. If your organization makes use of DockerHub and your container builders work with Portainer, this must be thought-about a should.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the most recent tech recommendation for enterprise execs from Jack Wallen.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments