You can configure Harbor to set the registry in read-only mode, and configure Harbor so that only system administrators can create projects.

Make the Registry Read Only

You can set Harbor to read-only mode. In read-only mode, Harbor allows docker pull but prevents docker push and the deletion of repositories and tags.

Read-only mode

If it set to true, deleting repositories, tags and pushing images are not permitted.

browse project

  1. docker push 10.117.169.182/demo/ubuntu:14.04
  2. The push refers to a repository [10.117.169.182/demo/ubuntu]
  3. 0271b8eebde3: Preparing
  4. denied: The system is in read only mode. Any modification is prohibited.

Set Who Can Create Projects

Use the Project Creation drop-down menu to set which users can create projects. Select Everyone to allow all users to create projects. Select Admin Only to allow only users with the Harbor system administrator role to create projects.

browse project