-
Notifications
You must be signed in to change notification settings - Fork 178
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
Containers not at the same network even though they are #234
Comments
Hi, I'm having the same issue and after comparing the
|
By inspecting the source code, I found that With the variable unset, this is the log output:
With the variable set, I get this:
|
Running the Caddy container with the (EDIT: Seems to me that the environment variable workaround would be ecommended over this one. I don't feel secure about recommending changes to cgroups settings without knowing exactly what that entails.) This option is not yet supported in Docker Compose. docker/compose#8167 As far as I could understand it, this change in behavior is related to cgroups v2 — by default, the container ID is no longer visible in the child cgroup in which the container runs. |
I confirm it works when setting up |
Readme updated |
Hi. I am following https://github.com/lucaslorentz/caddy-docker-proxy#basic-usage-example-using-docker-compose, but it simply doesn't work because I get:
and the generated block based on
{{upstream 8000}}
is "empty" (as if it's not being resolved to proper upstream service):but I can clearly see that caddy and the other file are at the same network by using
docker inspect
. When I hardcode the hostname, it works fine:but that's not a great solution. Is there a way how to fix that?
A similar issue seem to be discussed here, but I don't understand the resolution: #104
The text was updated successfully, but these errors were encountered: