Configuring Smart Remote Repository (e.g. Docker)

ARTIFACTORY: How to Set Up Docker Smart Remote Repository in an Air-Gapped Environment

AuthorFullName__c
Md Mohsin Ali
articleNumber
000006003
ft:sourceType
Salesforce
FirstPublishedDate
2024-01-25T14:30:02Z
lastModifiedDate
2024-01-25
VersionNumber
1
DMZ Artifactory Instance with Internet Access
Create a ‘docker-remote-repo’ pointing to the upstream URL: https://registry-1.docker.io/

User-added image

Internal Artifactory Instance 2 without Internet Access
1. Create a ‘docker-remote-repo’ pointing to “https://<Instance 1 URL>/artifactory/api/docker/<remote-repo-name>”, and enter the credentials of DMZ Instance.

User-added image

2. Set up the Docker client to resolve artifacts against the internal Artifactory Instance
$ docker login -u <userName> <internal-art-url>
Password:
Login Succeeded

3. Pull the sample docker image
$ docker pull <internal-art-urlL>/library/postgres
Using default tag: latest
latest: Pulling from library/postgres
2c6d21737d83: Pull complete 
1cceff339129: Pull complete 
205f857684f5: Pull complete 
0cba82cb23b3: Pull complete 
98bdcf4e4d62: Pull complete 
b3ce7bf87298: Pull complete 
53521cca1206: Pull complete 
58d4091d2a8b: Pull complete 
1124020ebc88: Pull complete 
a2fa9aa3be75: Pull complete 
c6a5b2d25c3a: Pull complete 
fa766685fa48: Pull complete 
c21bbfe5fb3d: Pull complete 
Digest: sha256:71da05df8c4f1e1bac9b92ebfba2a0eeb183f6ac6a972fd5e55e8146e29efe9c
Status: Downloaded newer image 
for<internal-art-url>.jfrog.io/library/postgres:latest

We were able to pull the image to the internal Artifactory instance and it is cached under the ‘docker-remote-cache’ repository.

User-added image


Related links: