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=default doesn't mean the same thing as --network= #16915
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
Romain-Geissler-1A
added a commit
to Romain-Geissler-1A/podman
that referenced
this issue
Jan 10, 2023
…idge" if containers.conf specifies a non-default configuration. Fixes containers#16915 (only the part about docker client). Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
Romain-Geissler-1A
added a commit
to Romain-Geissler-1A/podman
that referenced
this issue
Jan 10, 2023
…idge" if containers.conf specifies a non-default configuration. Fixes containers#16915 (only the part about docker client).
Romain-Geissler-1A
added a commit
to Romain-Geissler-1A/podman
that referenced
this issue
Jan 10, 2023
…idge" if containers.conf specifies a non-default configuration. Fixes containers#16915 (only the part about docker client). Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
Romain-Geissler-1A
added a commit
to Romain-Geissler-1A/podman
that referenced
this issue
Jan 10, 2023
…idge" if containers.conf specifies a non-default configuration. Fixes containers#16915 (only the part about docker client). Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
Romain-Geissler-1A
added a commit
to Romain-Geissler-1A/podman
that referenced
this issue
Jan 11, 2023
…idge" if containers.conf specifies a non-default configuration. Fixes containers#16915 (only the part about docker client). Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
Romain-Geissler-1A
added a commit
to Romain-Geissler-1A/podman
that referenced
this issue
Jan 11, 2023
…errides netns. Fixes containers#16915 (only the part about docker client). Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
Romain-Geissler-1A
added a commit
to Romain-Geissler-1A/podman
that referenced
this issue
Jan 11, 2023
…errides netns. Fixes containers#16915 (only the part about docker client). Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 4, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
While debugging some unexpected interactions between a docker client and podman server on my side, I found out that the flag
--network=default
doesn't mean the same thing as--network=
(or the absence of--network=XXX
flag). Note that docker docker client will explicitly pass NetworkMode=default when calling the docker daemon HTTP api, if no--network
flag was provided to the docker CLI.Steps to reproduce the issue:
All this was done using the very latest
quay.io/podman/upstream
image started in privileged mode.--network
flags:quay.io/podman/upstream
which has a containers.conf file which hardcodes the network mode tohost
:system service
(I won't show how to do it), and try to create a container with no explicit--network
flag with the docker client, it will use the bridge mode by default:Describe the results you received:
The explicit
--network=default
flags resolves to thebridge
network mode, while I would have expected thehost
one (in my conditions, as this is one overriden in thecontainers.conf
file).Describe the results you expected:
I would expect that in the same conditions, a container started explicitly with
--network=default
(or a container started with the docker CLI without providing any--network
flag) uses thehost
network mode (as this is one overriden in thecontainers.conf
file), just like when we run podman with no explicit--network
flag. Basically no matter which client podman vs docker is used, the end result should be the same.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:The text was updated successfully, but these errors were encountered: