mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
podman: introduce README for testing/configuration
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
7bd56074fe
commit
a03c4f5845
20
recipes-containers/podman/README
Normal file
20
recipes-containers/podman/README
Normal file
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user