User: _json_key

ARTIFACTORY: How to proxy a private Google Container Registry (GCR)?

AuthorFullName__c
Elina Floim
articleNumber
000004161
ft:sourceType
Salesforce
FirstPublishedDate
2018-05-25T19:10:14Z
lastModifiedDate
2021-09-22
VersionNumber
9

 

 

Password: The password will be the content of the previously downloaded JSON file. Copy the file’s content and paste it here
User-added image

  1. Now, it is possible to use the created Docker remote repository. For this example, pulling a public image of busybox from the publicly available GCR repository:

User-added image

To view the pull command, click on the image name in the list (busybox) and then on the 3-dot menu of the preferred tag (in this case - latest) to copy the full pull command.

  1. Next, in the copied pull command, we will need to copy the part after the hostname (“gcr.io”) and replace the host part with our Artifactory host and the remorse repository name in order to pull the image using Artifactory. For instance:

docker pull <Artifactory_host>/google-remote/google-containers/busybox:latest

  1. Upon a successful pull, the image will be available in Artifactory under the repository’s remote-cache:

User-added image

Please note that images that are available under the gcr.io endpoint, will not necessarily be available under the eu.gcr.io endpoint. Therefore, before pulling an image, make sure it exists in the desired endpoint. 

In addition, make sure that the endpoint is accessible under the GCP project and that the user has sufficient permissions to pull from these endpoints directly.

User-added image