Summary
The user is facing issues pushing images to a private registry (Harbor) after updating the Earthly tool from version 0.7.20 to the latest version. The older version allowed successful image pushes, but the new version results in a "connection refused" error when saving the image. The user noted that the buildkit configuration, particularly the http/insecure settings, may not be utilized correctly. Relevant configuration details from their Earthly config file were also provided.
brandon
Good to know, thanks for pointing that out. I’m not sure if that was an intentional change or not.
nils.kintscher910
Seems like I have to specify the registry with an explicit port, i.e. :80
nils.kintscher910
For some reason it's not using the buildkit config / or at least the http/insecure part.
nils.kintscher910
my Earthfile uses VERSION 0.7
nils.kintscher910
relevant config:
global:
buildkit_additional_config: |
[registry."192.168.2.219"]
http = true
insecure = true
cache_size_mb: 400000
conversion_parallelism: 5
strict_host_key_checking: false
git:
<http://bitbucket.org|bitbucket.org>:
auth: ssh
user: git```
nils.kintscher910
Hi there, I'm trying to push images to a private regsitry (harbor). When I'm using earthly 0.7.20 everything works fine. As soon as I update earthly to altest version, I'm not able to push anymore:
_unknown *failed* | build target: build main: failed to solve: failed to SAVE IMAGE: failed to do request: Head "<http://192.168.10.27/v2/library/image_a/blobs/sha256:fcd4c65769a69d398355a6599392b5f5e6c5c9f5e464ed3addd5936ba2c9d121>": dial tcp 192.168.10.27:80: connect: connection refused
vs version 0.7.20:
Pushed image <http://bitbucket.org/adomea/a:master+production|bitbucket.org/adomea/a:master+production> as 192.168.2.219/library/image_a:0-8edcb00e
Local Output Summary 🎁 (disabled)
————————————————————————————————————————————————————————————————————————————————```
relevant config:
```(base) ✘ nils@nils-desktop-home ~/projects/a master cat ~/.earthly/config.yml
global:
buildkit_additional_config: |
[registry."192.168.2.219"]
http = true
insecure = true
cache_size_mb: 400000
conversion_parallelism: 5
strict_host_key_checking: false
git:
<http://bitbucket.org|bitbucket.org>:
auth: ssh
user: git```