Inconsistent behavior of --network option #19089
Labels
documentation
Issue or fix is in project documentation
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.
network
Networking related issue or feature
Issue Description
For the scope of this bug report, consider network list as a list of named bridged networks created previously, separated by commas. Example:
mynetwork1,mynetwork2
Currently, when creating and running containers passing a network list on the
--network
option works. I can't say "as expected", because that's not officially documented anywhere, although I have seen mentions of this format in various places. In fact, the doc says:So I assume that a
network list
is not a canonical form of how this option works. Is that correct?I understand that removing this behavior is probably a breaking change and would need to be shipped on the next major.
However, considering that there's an intention to support this format moving forward, then let me present you the bug report below:
When using
create
orrun
with multiple--network
options and at least one of these options is a network list, then:Error: unable to find network with name or ID network1,network2: network not found
--network net1,net2 --network net3
would work, but--network net1 --network net2,net3
wouldn'tSteps to reproduce the issue
Steps to reproduce the issue
podman run --rm --network podman,podman --network podman alpine:latest ls
will workpodman run --rm --network podman --network podman,podman alpine:latest ls
will not workDescribe the results you received
First one will work, but the second one will not.
Describe the results you expected
I honestly don't know because this is not documented anywhere.
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
N/A
Additional information
N/A
The text was updated successfully, but these errors were encountered: