Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] lookup k3d-registry.localhost on 8.8.8.8:53: no such host (on Ubuntu 24.04) #1518

Open
khoaguin opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@khoaguin
Copy link

khoaguin commented Sep 25, 2024

OS: Ubuntu 24.04 (no such problem running on 22.04)

Failed to execute docker buildx build --tag k3d-registry.localhost:5800/openmined/syft-seaweedfs:dev-1727235027 --push --file seaweedfs.dockerfile --platform linux/amd64 - with the detailed command like below

ERROR: failed to solve: failed to push k3d-registry.localhost:5800/openmined/syft-seaweedfs:dev-1727235027: failed to do request: Head "https://k3d-registry.localhost:5800/v2/openmined/syft-seaweedfs/blobs/sha256:83601c6bcc7029051417d2530a55f71acab1c196fe5b3a9e2951988e10b03c51": dial tcp: lookup k3d-registry.localhost on 8.8.8.8:53: no such host
build_images: build images: error building image k3d-registry.localhost:5800/openmined/syft-seaweedfs:dev-1727235027: error executing 'docker buildx build --tag k3d-registry.localhost:5800/openmined/syft-seaweedfs:dev-1727235027 --push --file seaweedfs.dockerfile --platform linux/amd64 -':
fatal exit status 1

My /etc/docker/daemon.json looks like below

{
  "insecure-registries": ["k3d-registry.localhost:5800"],
  "dns": ["8.8.8.8", "8.8.4.4", "1.1.1.1"]
}

Also added 127.0.0.1 k3d-registry.localhost to /etc/hosts and

nameserver 8.8.8.8
nameserver 1.1.1.1

to /etc/resolv.conf.

@khoaguin khoaguin added the bug Something isn't working label Sep 25, 2024
@khoaguin khoaguin changed the title [BUG] lookup k3d-registry.localhost on 8.8.8.8:53: no such host [BUG] lookup k3d-registry.localhost on 8.8.8.8:53: no such host (on Ubuntu 24.04) Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant