# /etc/cni/net.d/testnet.conflist { "cniVersion": "0.4.0", "name": "testnet", "plugins": [ { "type": "bridge", "bridge": "br0", # main host interface is part of this bridge "ipam": { "type": "host-local", "subnet": "10.0.0.0/16", "gateway": "10.0.0.1", "routes": [{ "dst": "0.0.0.0/0"}] } } ] }
podman run -it --net testnet --ip 10.0.0.2 ... ns=$(basename $(podman inspect $id | jq -r '.[0] .NetworkSettings .SandboxKey')) ip netns exec $ns ip route add ...
You still can run podman as root without damon.
Or you can run a podman deamon (through systemd) which is even compatible with docker-compose but has most of the drawbacks of running docker.