-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
docker-compose: network communication between containers does not work #16939
Comments
I found that downgrading podman to older networking stack fixes DNS networking instability:
then |
likely related containers/aardvark-dns#248 and #16369 @TomaszGasior Can you check for messages from aardvark-dns in the journal when this happens? |
@Luap99 Please take a look. This is right after the DNS error occurred.
|
@TomaszGasior It sounds like this issue: containers/aardvark-dns#151 |
A friendly reminder that this issue had no activity for 30 days. |
Did you test with aardvark v1.5? |
@Luap99 Sorry for long delay. With clean & up-to-date Fedora 37 VM the issue still occurs.
|
I am not able to reproduce the issue with up-to-date Fedora 38. I think it's fine to close the issue. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Containers in docker-compose managed network cannot communicate correctly. Communication sometimes work but sometimes doesn't.
I have simple PHP based project as an example: https://github.com/TomaszGasior/RadioLista-v3 . Apache in
http
container communicates with PHP-FPM inapp
container and PHP app inapp
container communicates with MySQL indb
container. Also,http
andapp
containers haveuntil nc -z HOSTNAME PORT; do sleep 1; done; sleep 1
at the beginning of custom entry point scripts to wait until dependent service is ready to receive connections.Steps to reproduce the issue:
In up-to-date Fedora 37 VM:
Describe the results you received:
Go to https://127.0.0.1:2012 in web browser, refresh multiple times. Sometimes apache cannot connect to PHP-FPM with error "DNS lookup failure for: app" but sometimes connection works. Sometimes PHP app cannot connect to MySQL database with similar DNS related error. In
docker-compose up
output there are errors likenc: bad address 'app'
andnc: bad address 'db'
which should not happen.Describe the results you expected:
There is no
nc: bad address 'app'
andnc: bad address 'db'
messages in output. Connection between containers always works.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora 37 in VM
The text was updated successfully, but these errors were encountered: