Immutable solution version
SAVE IMAGE connection refused
Complete solution
Shows how to fix sAVE IMAGE connection refused. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
A user reported the following error when he attempted to run a build with a SAVE IMAGE on Jenkins CI with Linux. ``` [2024-01-22T23:20:34.964Z] output | --> exporting outputs [2024-01-22T23:20:47.159Z] output | [----------] 100% exporting outputs[K [2024-01-22T23:20:55.244Z] Error: pull ping error: pull ping response: rpc error: code = Unknown desc = image pull: 1 error occurred: [2024-01-22T23:20:55.244Z] * command failed: docker pull the loopback address:35137/sess-jwd728vcbn4ni32eu360wnxmi/pullping:img-0: exit status 1: Error response from...
Steps
- Issue earthly/earthly#3736 (closed, 6 comments): What went wrong?
- A user reported the following error when he attempted to run a build with a
SAVE IMAGEon Jenkins CI with Linux. `
[2024-01-22T23:20:34.964Z] output | --> exporting outputs [2024-01-22T23:20:47.159Z] output | [----------] 100% exporting outputs[K [2024-01-22T23:20:55.244Z] Error: pull ping error: pull ping response: rpc error: code = Unknown desc = image pull: 1 error occurred: [2024-01-22T23:20:55.244Z] * command failed: docker pull the loopback address:35137/sess-jwd728vcbn4ni32eu360wnxmi/pullping:img-0: exit status 1: Error response from...
- When Earthly runs inside Docker it cannot reach its registry proxy on the host loopback, which causes the connection-refused on save. Either pass --disable-remote-registry-proxy or run the container with host networking.
When to use
You are seeing this: Issue earthly/earthly#3736 (closed, 6 comments): What went wrong? Use this skill when you run into "SAVE IMAGE connection refused".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In the GitHub issue gh:earthly/earthly#3736 (https://github.com/earthly/earthly/issues/3736), the problem reported was: Issue earthly/earthly#3736 (closed, 6 comments): What went wrong?
A user reported the following error when he attempted to run a build with a SAVE IMAGE on Jenkins CI with Linux.
[2024-01-22T23:20:34.964Z] output | --> exporting outputs
[2024-01-22T23:20:47.159Z] output | [----------] 100% exporting outputs[K
[2024-01-22T23:20:55.244Z] Error: pull ping error: pull ping response: rpc error: code = Unknown desc = image pull: 1 error occurred:
[2024-01-22T23:20:55.244Z] * command failed: docker pull the loopback address:35137/sess-jwd728vcbn4ni32eu360wnxmi/pullping:img-0: exit status 1: Error response from... The verified resolution was: When Earthly runs inside Docker it cannot reach its registry proxy on the host loopback, which causes the connection-refused on save. Either pass --disable-remote-registry-proxy or run the container with host networking.By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_wFm2ks7-PI-r9V8Vyx_Xdw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">SAVE IMAGE connection refused <span>— Vectle</span></a>