Generate a token in Container Registry
Control panel
Terraform
To configure access to registries, generate a token. You can select the token expiration date, access rights, and registries to which the token gives access.
-
In the control panel, on the top menu, click Products and select Container Registry.
-
Open the Tokens tab.
-
Click Generate Token.
-
Enter the token name.
-
Select access rights:
- read-only — downloading images and charts from the registry will be available;
- write and read — adding, downloading, and deleting images and charts from the registry will be available.
-
Select the registry you want to grant access to. If you grant access to all registries, the token will also be valid for new registries you create in this project.
-
Select the token validity period:
- 30 days;
- 60 days;
- 90 days;
- 1 year;
- indefinite.
-
Click Generate Token.
-
Save the authorization data using the token — copy the username (username) and password (password) or download the token in
.jsonformat.