network mode container fails if container use host mode #18027
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.
Issue Description
Starting a container with network="container:" will fails if target container use host mode.
Steps to reproduce the issue
Steps to reproduce the issue
podman run -d --network=host alpine tail -f /dev/null
podman run --network="container:<previous-sha>" alpine
Describe the results you received
Describe the results you expected
I expected my new container to be created using the same network: host
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
No response
Additional information
I tried the same using docker in a clean environment, it works correctly in root and rootless.
Found for nektos/act#303
The text was updated successfully, but these errors were encountered: