Sunday, July 19, 2026
HomeCloud ComputingLearn how to add an authenticated DockerHub registry to Portainer and handle...

Learn how to add an authenticated DockerHub registry to Portainer and handle entry to it

[ad_1]

Jack Wallen walks you thru the method of including an authenticated DockerHub registry to Portainer in addition to granting customers entry to each the setting and the registry.

docker-with-waves.jpg
Illustration: Lisa Hornung/TechRepublic

Portainer is a robust GUI instrument you should use to handle most features of your Docker container deployment. However not solely are you able to pull down photographs and deploy containers, however you may as well add registries and even handle consumer entry to these registries.

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

For instance, you may need a group DockerHub account that you just use for growth photographs. Out of the field, Portainer makes use of nameless entry to DockerHub, so you probably have an organization account, it received’t pull from these photographs.

Happily, the Portainer builders haven’t solely made it potential so that you can add your authenticated DockerHub account, however you may as well handle who has entry to it throughout the GUI instrument.

I’m going to point out you the right way to do each.

What you’ll want

To make this work, you’ll want a operating occasion of Portainer and an entry token for DockerHub.

Learn how to create a DockerHub entry token

The very first thing we should do is create a DockerHub entry token. Log into your DockerHub account and click on the username drop-down within the upper-right nook of the window. From the drop-down menu, click on Account Settings, after which, from the left sidebar, click on Safety. Within the ensuing window (Determine A), click on New Entry Token, give the token a reputation and ensure it has Learn, Write, Delete entry.

Determine A

Creating an access token for DockerHub.
Creating an entry token for DockerHub.

When you save the token, you’ll be offered with a protracted string of characters. Be certain to repeat and save that entry token, as you’ll want it in a bit.

Learn how to add the authenticated DockerHub registry

Now, we’re going so as to add the authenticated DockerHub registry. Log into Portainer and click on Registries from the left sidebar. Within the ensuing window (Determine B), click on Add Registry.

Determine B

All of your registries will be listed here.
All your registries might be listed right here.

Within the subsequent window, click on DockerHub alongside the highest (Determine C).

Determine C

The types of registries you can add to Portainer are found at the top of the window.
The sorts of registries you possibly can add to Portainer are discovered on the prime of the window.

You’ll then should fill out the required info to your authenticated DockerHub registry (Determine D). Give the brand new registry a reputation after which make sure that the username is the precise username to your account (which might be not the related e-mail tackle). Within the password discipline, paste the entry token right here after which click on Add Registry.

Determine D

Adding the authenticated DockerHub registry to Portainer.
Including the authenticated DockerHub registry to Portainer.

Your registry is now prepared for use.

Learn how to grant customers entry to the brand new registry

Let’s add a brand new consumer to Portainer after which grant them entry to the DockerHub authenticated registry. From the left sidebar, click on Customers after which, within the ensuing window kind a brand new username after which kind and make sure a password for the consumer (Determine E).

Determine E

Adding a new user to Portainer.
Including a brand new consumer to Portainer.

Click on Create Consumer so as to add the brand new consumer to the system.

With our new consumer added, we then have to grant them entry to the brand new registry. Earlier than we are able to do this, we should first grant the brand new consumer entry to the setting. For that, click on Environments from the left sidebar and click on Handle Entry Related to the native Surroundings. From the Choose consumer(s) and/or group(s) drop-down (Determine F), choose the brand new consumer after which click on Create Entry.

Determine F

Granting a user access to the environment.
Granting a consumer entry to the setting.

Now, we are able to grant the consumer entry to the brand new registry. From the left sidebar, click on Host | Registries. Within the subsequent window, click on Handle Entry related to the authenticated DockerHub registry.

Choose the brand new consumer from the Choose consumer(s) and/or group(s) drop-down after which click on Create entry (Determine G).

Determine G

Granting user Nathan access to the authenticated DockerHub registry.
Granting consumer Nathan entry to the authenticated DockerHub registry.

When the brand new consumer logs into Portainer, they won’t solely have entry to the required setting however to the DockerHub authenticated registry. This fashion they will pull the photographs your groups have created and pushed to your organization’s DockerHub registry.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest 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