Saving an local image in air gapped environment is not possible
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the issue with the provided nerdctl save command in an air-gapped environment and follow the debug output showing registry resolution. Identify the save path responsible for resolving the image, then verify that an image already available locally is saved without contacting the registry.
Written by the indexing model from the issue text.
Description
Description
Saving an local image in air gapped environment is not possible, nerdctl always tries to contact the registry.
If the image is available locally, nerdctl shall not contact the registry anymore.
nerdctl -n k8s.io save -o C:\tmp\exportedImage.tar shsk2s.azurecr.io/example.albums-golang-win:v1.5.0 --debug
time="2026-03-02T12:05:47+01:00" level=debug msg=fetching image="shsk2s.azurecr.io/example.albums-golang-win:v1.5.0"
time="2026-03-02T12:05:47+01:00" level=debug msg=resolving host=shsk2s.azurecr.io
time="2026-03-02T12:05:47+01:00" level=debug msg="do request" host=shsk2s.azurecr.io request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=containerd/2.2.1+unknown request.method=HEAD url="https://shsk2s.azurecr.io/v2/example.albums-golang-win/manifests/v1.5.0"
time="2026-03-02T12:06:08+01:00" level=info msg="fetch failed" error="failed to do request: Head \"https://shsk2s.azurecr.io/v2/example.albums-golang-win/manifests/v1.5.0\": dial tcp 20.61.97.143:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." host=shsk2s.azurecr.io
shsk2s.azurecr.io/example.albums-golang-win:v1.5.0: resolving |--------------------------------------|
elapsed: 21.0s total: 0.0 B (0.0 B/s)
time="2026-03-02T12:06:08+01:00" level=fatal msg="failed to resolve reference \"shsk2s.azurecr.io/example.albums-golang-win:v1.5.0\": failed to do request: Head \"https://shsk2s.azurecr.io/v2/example.albums-golang-win/manifests/v1.5.0\": dial tcp 20.61.97.143:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Steps to reproduce the issue
- use an air gapped env
- try to save the image
Describe the results you received and expected
I was expecting I can save the image as file
What version of nerdctl are you using?
2.2.1
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No
- Dominant language
- Go
- Stars
- 10.5k
- Forks
- 853
- Avg merge
- 6d 14h
- Merged PRs (30d)
- 38
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from containerd/nerdctl
-
Test and examples: update wordpress images (to silence potential false security alerts)Possibly taken @Guurdeep claimed this 20 days ago. Openarea/ci documentation priority/low
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
containerd/nerdctl#5283 · 2 comments ·
Maintainers usually reply within 3 days
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signalsMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
containerd/nerdctl#5171 · 3 comments ·
Maintainers usually reply within 3 days
-
area/project
Difficulty 1/5 Under an hour Newbie friendliness 25/100
containerd/nerdctl#5383 · 5 comments ·
Maintainers usually reply within 3 days
-
Restart-policy containers loop on "unable to apply apparmor profile" after reboot until the creating user logs in (OCI hook inherits the client's XDG_RUNTIME_DIR)Possibly taken @Shubhranshu153 claimed this today. Openarea/rootless bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
containerd/nerdctl#5377 · 1 assignee ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
containerd/nerdctl#5355 ·
Maintainers usually reply within 3 days
All issues in containerd/nerdctl
Similar issues
-
P3 tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
kind/feature needs-triage priority/unprioritized
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NVIDIA/k8s-test-infra#1504 ·
Maintainers usually reply within 1 day
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
wso2/agent-manager#2717 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
open-policy-agent/opa#9685 · 1 comment ·
Maintainers usually reply within 1 day