From a03c4f584567d9733e601d16af80299ec48b492d Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Sat, 12 Aug 2023 03:17:41 +0000 Subject: [PATCH] podman: introduce README for testing/configuration Signed-off-by: Bruce Ashfield --- recipes-containers/podman/README | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 recipes-containers/podman/README diff --git a/recipes-containers/podman/README b/recipes-containers/podman/README new file mode 100644 index 00000000..4c223a39 --- /dev/null +++ b/recipes-containers/podman/README @@ -0,0 +1,20 @@ +rootless podman +--------------- + +Basic configuration: + + https://developers.redhat.com/blog/2020/09/25/rootless-containers-with-podman-the-basics# + +% echo "user.max_user_namespaces=28633" > /etc/sysctl.d/userns.conf +% sysctl -p /etc/sysctl.d/userns.conf + +% useradd -c "yocto" yocto +% passwd yocto + +% su - yocto + +% podman pull alpine +% podman run alpine cat /etc/os-release +% podman images +% podman unshare cat /proc/self/uid_map +