Skip to content

feat: Add registry IP resolution to library.#7

Merged
bvanelli merged 2 commits into
mainfrom
feat/add-registry-ip-resolution
Mar 21, 2026
Merged

feat: Add registry IP resolution to library.#7
bvanelli merged 2 commits into
mainfrom
feat/add-registry-ip-resolution

Conversation

@bvanelli

Copy link
Copy Markdown
Owner

It is very useful when whitelisting a docker registry on a constrained network, to be able to resolve all IPV4 and IPV6 addresses to which your docker pull would resolve.

This PR introduces the command crpy resolve to assist listing all DNS names with all IP addresses linked to them. As an example, the following command resolves the alpine:latest image:

$ crpy resolve alpine:latest
                                 Endpoints for alpine:latest                                  
┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Role     ┃ Hostname        ┃ IPs                           ┃ URL                           ┃
┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ registry │ index.docker.io │ 100.50.185.129,               │ https://index.docker.io/v2/li │
│          │                 │ 174.129.222.113, 3.81.188.6,  │ brary/alpine/manifests/latest │
│          │                 │ 44.208.12.140, 52.71.174.30,  │                               │
│          │                 │ 52.86.153.188, 54.147.201.31, │                               │
│          │                 │ 54.196.196.77                 │                               │
│ auth     │ auth.docker.io  │ 104.18.43.178, 172.64.144.78  │ https://auth.docker.io/token? │
│          │                 │                               │ service=registry.docker.io&sc │
│          │                 │                               │ ope=repository:library/alpine │
│          │                 │                               │ :pull                         │
│ config   │ index.docker.io │ 100.50.185.129,               │ https://index.docker.io/v2/li │
│          │                 │ 174.129.222.113, 3.81.188.6,  │ brary/alpine/blobs/sha256:a40 │
│          │                 │ 44.208.12.140, 52.71.174.30,  │ c03cbb81c59bfb0e0887ab0b18597 │
│          │                 │ 52.86.153.188, 54.147.201.31, │ 27075da7b9cc576a1cec2c771f38c │
│          │                 │ 54.196.196.77                 │ 5fb                           │
│ layer-0  │ index.docker.io │ 100.50.185.129,               │ https://index.docker.io/v2/li │
│          │                 │ 174.129.222.113, 3.81.188.6,  │ brary/alpine/blobs/sha256:589 │
│          │                 │ 44.208.12.140, 52.71.174.30,  │ 002ba0eaed121a1dbf42f6648f29e │
│          │                 │ 52.86.153.188, 54.147.201.31, │ 5be55d5c8a6ee0f8eaa0285cc21ac │
│          │                 │ 54.196.196.77                 │ 153                           │
└──────────┴─────────────────┴───────────────────────────────┴───────────────────────────────┘

@bvanelli bvanelli merged commit 883a6e2 into main Mar 21, 2026
6 checks passed
@bvanelli bvanelli deleted the feat/add-registry-ip-resolution branch March 21, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant