Skip to content

Instantly share code, notes, and snippets.

@ikurni
Last active January 25, 2019 06:30
Show Gist options
  • Save ikurni/2b2e75cf939d35da63db38d9b6369df9 to your computer and use it in GitHub Desktop.
Save ikurni/2b2e75cf939d35da63db38d9b6369df9 to your computer and use it in GitHub Desktop.
Satellite 6.3+ - Use capsule as Docker Repository
### To configure Satellite as Docker Repository, it will be depend on how it's set to published at which URL. But for Capsule will use different URL compare to Satellite. To check correct URL for Capsule, so we can pull docker images from Capsule URL directly, do this :
#Go to Directory /var/lib/pulp/published/docker/v2/web/1-xxx-xxx-xxx (xxx represent random name dir generated by Pulp based on content view configuration)
cd /var/lib/pulp/published/docker/v2/web/1-openshift-cv-dr-7a234-12312-1231-3434-3243-4534-2342398704/tags
#Inside the dir, we can find few files in there, but just simply print the tags list
cat list
# {"name": "abc-dr-openshift-cv-docker-registry-openshift:3_ose-deployer", "tags": "["v3.11.51"... output omitted
#
# Inside the tags, it will show you the complete URL of the images location, something like : capsule.example.com:5000/abc-dr-openshift-cv-docker-registry-openshift:3_image-name:tag, so from client, we can pull image directly with command :
docker pull capsule.example.com:5000/abc-dr-openshift-cv-docker-registry-openshift:3_ose-deployer:v3.11.59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment