Localhost in a container is not the same thing as localhost on the node. Remember that unless you use host networking, each container has its own virtual interface with a unique IP and loopback interface.
creamy-pencil-82913
03/01/2025, 10:31 PM
Don't use localhost if you want to be able to connect to it from somewhere else, including containers.
creamy-pencil-82913
03/01/2025, 10:32 PM
This is just basic container networking stuff
i
icy-glass-38894
03/02/2025, 2:31 AM
got it . Thanks . What is best workaround if i have to connect to local registry runing as docker container from k3s (running via k3d) ?
c
creamy-pencil-82913
03/02/2025, 6:15 AM
Listen on the wildcard address (0.0.0.0) and use your host IP as the registry address.