-
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
podman run container with network option can't connect to internet #21219
Comments
Check |
tap0 interface is exists.
also slirp4netns is running. I tried rebooting, but it didn't work. I'll try stopping all containers and deleting $XDG_RUNTIME_DIR/netns/rootless-netns-* |
If reboot didn't work you do not need to try and stop the containers. Slirp4netns is running and the tap0 interface is there so that looks good so the problem must be somewhere else. |
@Luap99 |
Issue Description
When I run the container with podman specifying network, the container has no way to access the internet.
Steps to reproduce the issue
1.add some conf to sysctl
2.apply it
# sysctl -p
3.create podman network
$ podman network create --subnet 192.168.10.0/24 --gateway 192.168.10.1 --subnet fd52:2a5a:747e:3acd::/64 --gateway fd52:2a5a:747e:3acd::1 testnet
Describe the results you received
1.when run container with testnet, it's
NG
2.when run container with default podman network, it's also
NG
3.but when i run container without network option is
OK
Describe the results you expected
podman run container with network can't connect to internet
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Debian testing
Additional information
No response
The text was updated successfully, but these errors were encountered: