Back to Portainer

Add a GitHub registry

admin/registries/add/ghcr.md

1.23.24.4 KB
Original Source

Add a GitHub registry

{% hint style="info" %} The GitHub registry option is only available in Portainer Business Edition. {% endhint %}

From the menu select Registries then click Add registry and select GitHub as the registry provider.

<figure><figcaption></figcaption></figure>

Complete the form, using the table below as a guide.

Field/OptionOverview
NameEnter the name you'd like to use in Portainer for your registry.
UsernameEnter the username you use to log into your GitHub registry.
Personal Access Token<p>Enter the personal access token (classic) that corresponds to the username above. Your personal access token (classic) will need the <code>delete:packages</code>, <code>repo</code>, and <code>write:packages</code> scopes assigned.
GitHub <a href="https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry">does not currently support</a> the use of fine-grained tokens for registry access.</p>
Use organisation registryToggle this on if your registry is part of a Github organization.
Organisation nameEnter the name of your GitHub organization.
<figure><figcaption></figcaption></figure>

{% hint style="info" %} For more information about creating a personal access token, see GitHub's own documentation. {% endhint %}

When the form is complete, click Add registry.