Password: The password will be the content of the previously downloaded JSON file. Copy the file’s content and paste it here
- 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:
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.
- 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
- Upon a successful pull, the image will be available in Artifactory under the repository’s remote-cache:
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.