I am running a virtual environment on CentOS with podman.
When I used the --net
option of the podman run command, I get an error.
[user@server ~]$ podman run --net slirp4netns:port_handler=slirp4netns -p 1080:80 -d --name web nginx
Error: cannot join CNI networks if running rootless: invalid argument
Is this option unavailable?
Or is there a problem with the way the options are specified?
Please tell me solution.
I used this site as a reference for the command.
This is the configuration of the server.
[user@server ~]$ cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
[user@server ~]$ podman -v
podman version 2.0.6