Closed calvin2021y closed 1 year ago
find out the problem is not use host network by default.
reopen again, host network still not work.
podman run -it --rm --cap-add=sys_admin,mknod --device=/dev/fuse --security-opt label=disable mgoltzsche/podman:latest podman run --network=host alpine ip a
✔ docker.io/library/alpine:latest
Trying to pull docker.io/library/alpine:latest...
Getting image source signatures
Copying blob 8a49fdb3b6a5 done
Copying config 5e2b554c1c done
Writing manifest to image destination
Storing signatures
WARN[0003] Failed to add conmon to cgroupfs sandbox cgroup: creating cgroup path /libpod_parent/conmon: open /sys/fs/cgroup/cgroup.subtree_control: read-only file system
Error: OCI runtime error: runc: runc create failed: unable to start container process: unable to apply cgroup configuration: mkdir /sys/fs/cgroup/libpod_parent: read-only file system
run the code as non-root user:
podman/stable
work fine.