Small guide for quick access to harbor docker image storage.
In order to give access to a new temporary user, you will need to configure a robot account with these steps:
- go to your desired managed project
- go to Robot Accounts
- New Robot Account
- type a name, the number of days that this account will be valid and choose its permissions
After clicking Add, you will be prompted with the account secret, make sure to copy it somewhere because you won't be able to access it in Harbor another time.
Once the robot account is created, the user will need to use it to authenticate via docker.
docker login harbor.<your_domain>
After this you will be prompted to enter Username and password. Enter the ones from the previously created robot-account.
Then:
docker tag <your_image> harbor.<project_where_robot_account_exists>/<image_name>:<tag>
docker push harbor.<project_where_robot_account_exists>/<image_name>:<tag>
Note: Additional docs for docker authentication https://docs.docker.com/desktop/setup/sign-in/