- How to install
pingutility inside container ? - How to allow continers to execute
ping? - Error - “/” is not a shared mount
How to install ping utility inside container ?
apt-get update
apt-get install iputils-ping
## fedora
dnf install iputils
How to allow continers to execute ping ?
Run container with additional capabilities.
$ sudo podman run --cap-add net_raw --cap-add net_admin -it ubuntu bash
Error - “/” is not a shared mount
ERROR on rootless mode
$ podman ps
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
Error: cannot setup namespace using newuidmap: exit status 1
resolve the rootless mode problem
sudo chmod 4755 /usr/bin/newgidmap
sudo chmod 4755 /usr/bin/newuidmap
Disclaimer: Views expressed in articles are those of the respective authors and do not necessarily reflect the views of their employers or this site. While we aim for accuracy, please verify information before relying on it, and let us know if you spot an error.

