-
Notifications
You must be signed in to change notification settings - Fork 481
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
can't pull images while building with buildx 'failed to do request', 'i/o timeout' #191
Comments
Unlike #136, I'm not using a proxy.
|
What is your dns configuration in this machine? Does networking work with other docker containers with this configuration. |
Don't have any DNS settings on Opened an alpine container and ran a couple Running the laptop as the head node for a small cluster - however
|
issue was |
@xonq I have the same problem. Could you explain more details as to how you handle this issue? |
@altrobot If your problem is caused by the same thing as me, then it is due to Short term solution: I don't recommend it, but if you constantly need to use |
Well, in case someone hits this timeout problem when using buildx in WSL2, here's a possible explanation and solution: Check that WSL's
If they do collide, then to fix it you can modify {
"bip": "172.26.0.1/16"
} Now restarting docker with |
I didn't want to mess with I was using the |
We got same error. We found out docker containers can't resolve DNS by default. You can also add DNS to docker daemon config, so all new containers have new dns config. Add following config to {
"dns": ["8.8.8.8"]
} Then restart docker |
how to use the image I have already pulled by docker ? I want to use docker buildx in my network isolation machine. |
PROBLEM
when trying to pull any image in the Dockerfile,
buildx build
fails. I can pull images manually (docker pull
), wouldn't mind just using my local version, but it preferentially pulls from the website for whatever reason. Not behind a proxy afaik.SETUP
Added buildx binary manually - worth noting I couldn't use buildx simply by specifying
export DOCKER_CLI_EXPERIMENTAL=enabled
.Arch Linux
Docker version 19.03.5-ce, build 633a0ea838
HIGHLIGHTED ERROR
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to build LLB: failed to load cache key: failed to do request: Head https://registry-1.docker.io/v2/continuumio/miniconda/manifests/latest: dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: read udp 172.17.0.2:40167->192.168.1.1:53: i/o timeout
LOGS
docker buildx build --platform linux/amd64,linux/arm64 --output /home/xaq/software/maker.img .
Dockerfile:
docker buildx ls
The text was updated successfully, but these errors were encountered: