First, use the administrator assign users
Log in using the administrator console harbor, go to "System Management" - "User Management", click on the Create User:
Fill in the form to create a user that is assigned a user account:
Second, new projects
Use just created testuser login harbor console, right click on the "New Project"
Fill in the project name and set the project mirrored warehouse supports public access (set to open here):
Once created, you can see the construction of a mirror project management interface:
Can for this project, add members can access and give permission:
among them,
1) Summary: shows the overall capacity of the project, mirroring the number of warehouses.
2) Mirror warehouse: the user actually manage all the images.
3) Members: members of management for maintaining access to the mirror repository and different access control.
4) Tags: for managing image libraries already have mirrored label.
5) Configuration Management: Configuration basic mirroring warehouse control, such as mirroring warehouse whether public access, whether vulnerability scanning, vulnerability white list and expiration date.
Other less commonly used, temporarily not describe.
Third, create a mirror image warehouse and push
Preconditions: docker be familiar image push and pull commands and associated operations.
Get the address and command push
In project management interface under the "mirror image warehouse" tab, click on the right "push mirrored docker command", the system will be prompted to push for mirroring command, click on the small box on the right side, you can copy command. Copy This command has the advantage that the system has automatically help you fight the good of the entire URL of the destination address to be pushed, you only need to modify SOURCE_IMAGE where [: TAG] and IMAGE [: TAG] section for your own name to the mirror .
To push the mirror into the mirror warehouse helloworld Example :( how to generate image, this is not tired, refer docker run helloworld example)
Bearing in mind the docker push trilogy mirror
1, docker login to the mirror warehouse server
2, docker tag play tag tag for a local mirror to mirror warehouse server
3, docker push the mirror to the mirror warehouse
docker login Mirror warehouse
docker login --username=testuser --password=xxxx harbor服务器地址
Note: The first time docker Command Line Login follows logon failures occur, see the specific process "for the first time docker login failed login harbor service approach"
** 打 docker day **
docker tag hello-world:latest xxxx/project-test/hello-world:1.0
Push mirroring
docker push xxxx/project-test/hello-world:1.0
Note: wherein, XXXX is the harbor server address, project-test for the new image management program, hello-world: 1.0 concrete mirror
after a successful push, warehouse shown below:
Click push up the mirror to see different tag specific mirror image, as follows:
Thus, harbor push mirroring operation is completed. Command for subsequent use as long as follow docker pull.
Watch Yi code at the head micro-channel public number for more dry goods
This article by the head chess code www.root1024.com exclusive release!