Cyber Deals - Get up to 65% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

Container Tips

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.
Share:

Related Posts

Ansible Automation Platform - Disaster Recovery

Ansible Automation Platform - Disaster Recovery

These are official references to implement Disaster Recovery (DR) designs for Ansible Automation Platform.

Ansible - Frequently Asked Questions

Ansible - Frequently Asked Questions

Ansible - Frequently Asked Questions What is Ansible? What is IaC (Infrastructure as Code)? What can Ansible do? What are the advantages of Ansible? …

Cloud

Skopeo Cheat Sheet

Also see, OpenShift-Kubernetes-Docker Cheatsheet Skopeo Cheat Sheet for details. Podman Cheat Sheet for details. Note : This is s a living document …

Ansible and Terraform

Ansible and Terraform

cloud.terraform collection github.com/ansible-collections/cloud.terraform

Cloud

Podman Cheat Sheet

Also see, OpenShift Learning Center kubectl & oc Cheatsheet Skopeo Cheat Sheet for details. Podman Cheat Sheet for details. Note : This is s a …