Creating a Resource in Container Registry
Create a resource in container registry using the console and API.
- In the Console, open the navigation menu and click Developer Services. Under Containers and Artifacts, click Container Registry.
- Create a resource in the compartment in which you have permission to work.
-
In the Create Repository dialog box, specify details for the new repository:
- Compartment: Displays the compartment that you selected. You can select any compartment that you have permission to work in.
- Repository Name: Enter a name for the repository. The name you enter must be unique across all the compartments in the entire tenancy. Avoid entering confidential information.
- Public: Specify if you want the repository to be public. You can make the repository public only if you belong to the tenancy's administrators group or have the REPOSITORY_MANAGE permission. If you make the repository public, any user with internet access and the appropriate URL can pull images from the repository. If you mark the repository as private, only you and the users belonging to the group can have access and rights to the repository.
-
Click Create Repository. You can also use the following API command:
oci artifacts container repository create --display-name <repo-name> -- compartment-id <compartment_ocid> [OPTIONS]
Note
If you want to create private repositories in the tenancy's root compartment when the docker push commands don't include the name of an existing repository, do the following:
-
Click Settings, and then select General.
-
Select Create repositories on first push in root compartment to
automatically create a new private repository in the tenancy's root compartment if the repository referenced in a docker push command doesn't already exist.
For more information, see Creating a Repository.
-