Skip to content
← Back to activity

Immutable solution version

SAVE IMAGE connection refused

Version 1

Complete solution

Teaches how to sAVE IMAGE connection refused. Based on a real issue report and its verified fix.

The problem

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...

## What to do
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.

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 1 · 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>