Replies: 5 comments 4 replies
-
Hey, could you provide the logs for this error? Are the requests timing out or returning an error? |
Beta Was this translation helpful? Give feedback.
-
I'm not OP, but I'm having a similar problem and I can provide any information you need. Here's what I have: I'm Using Here's my docker-compose file:
The log for the container (
Trying the same operation using wget inside the container works fine:
Running
Notes:
Hope it helps |
Beta Was this translation helpful? Give feedback.
-
Another interesting data point: I've extracted the binary from the container with: There's definitely some interaction with podman (and apparently docker too). |
Beta Was this translation helpful? Give feedback.
-
@marcopaganini Looking at those response times, it seems like you're experiencing the exact same behavior as the one from this issue, which has something to do with DNS because the domain resolution by itself takes 5 seconds. It's very weird because you have set the DNS to 1.1.1.1, so presumably this potential solution wouldn't work. I still have no idea what's causing this as the vast majority of people don't have this problem, and the ones that do probably have some configuration in common, I just can't figure out what that is. |
Beta Was this translation helpful? Give feedback.
-
OK, after a lot of banging my head on the wall, I think I have a conclusion and a workaround. Please note that I'm using podman, not docker. Not sure if this problem would happen with docker too. I was originally using the following
With this configuration, podman does two things when it comes to networking:
In this configuration (two networks), things just don't work. I ran a tcpdump on the DNS traffic and I can see it going out on the In
And rebooted the machine. Running Next, I removed the What "solved" the problem was to force the container to the default "podman" network (as if running with pure docker). For that, just add to the end of your
I have to say that this is a very strange behavior. Only certain programs fail. I now understand why an old program of mine was failing (also written in Go, which does not use the standard resolver). I have a friend who works closely with podman development. I'll ask him for clues and maybe post a question on some podman forum. This does not look like a healthy behavior. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can not see any Video
Beta Was this translation helpful? Give feedback.
All reactions