amitn322 / blackesk

BLACK ESK SIEM is a SIEM platform built with Elasticsearch, Syslog-Ng and Kibana
29 stars 12 forks source link

=> ERROR [internal] load metadata for docker.io/library/alpine:latest #13

Open maurocolella opened 1 year ago

maurocolella commented 1 year ago

Hi.

This looks glorious. However:

failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch oauth token: Post "https://auth.docker.io/token": dial tcp: lookup auth.docker.io on [::1]:53: read udp [::1]:39458->[::1]:53: read: connection refused

This is on Manjaro . I do have a firewall configured using ufw, but the issue is the same if I disable it. I have a custom dns server (raspberry pi with pihole), which acts as a thin cache in front of google dns (and the issue is the same if I disable it).

Docker version 20.10.18, build b40c2f6b5d Manjaro 22.0.0 Kernel 5.15.74-3-MANJARO

I am logged in to docker.io, my docker daemon requires sudo. Hence, I run the install using sudo.

My timezone is correctly set in the .env.

maurocolella commented 1 year ago

So, as it turns out, NetworkManager manages my connection, including dns resolution, but some component of the build was trying to resolve from localhost. I temporarily added a name server to resolv.conf,

nameserver 8.8.8.8

Re-ran the build and everything works.

amitn322 commented 1 year ago

Thank you , I will try to see what I can do to fix this issue.