-
Notifications
You must be signed in to change notification settings - Fork 485
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
network_mode: host have no effect and ports does not opened (podman-compose 1.0.3) #397
Comments
Possibly (unsure) related to #316 |
it seems that |
I'm also encountering a similar (related?) issue without I see the following line is no longer printed on
Instead, all the separate containers get something like the following, which wasn't the case before:
The applications are all reachable on their respective ports (3000, 3001, 3002, and 8080), but they don't seem to share the same network any more somehow. |
@NoTuxNoBux please check this |
@muayyad-alsadi That was it, thanks, and sorry for the noise. In case anyone else experiences my problem, on Arch:
|
@Hubbitus please test the above commit |
@muayyad-alsadi I was experiencing the same issue. With the latest development version, this works, however another related issue seems to be with Edit: Actually, since this seems to be an entirely new feature, I opened a separate issue for this: #413 |
@quexten you can use "network_mode: service:test" in latest devel |
Is there a plan to release |
I'm using 1.0.3 RPM from Almalinux and meet the bug either. I want to keep my system clean, and don't want to PIP install podman-compose. Could you release next version ASAP? |
1.0.6 is released and it works ok. |
Describe the bug
Despite to the container used
network_mode: host
default network is also applied in the command line later and has precedence!To Reproduce
Minimal
docker-compose.yml
file to reproduce problem:Run it:
Test:
Expected behavior
Get working Apache
httpd
welcome page.Actual behavior
Got an error what the port is not open.
Please note, in the actual command line for the podman present sequentially:
--network host --net podman-compose-bug_default
, so if I manually re-run such container without--net podman-compose-bug_default
that will work:I also tested that behaviour with previous version of
podman-compose
(in Fedora 35 that is 0.1.8), and it generate expected (working) run command, please look:Versions and environment
Environment:
The text was updated successfully, but these errors were encountered: