Debug rootless UID mapping

Show the user namespace UID range behind rootless containers; fix file permissions with chown inside podman unshare

podman unshare cat /proc/self/uid_map; cat /etc/subuid

tool
podman16 commands
tags
podmansecurityrootlesstroubleshooting

More podman commands

  • podman auto-update --dry-run && systemctl --user start podman-auto-update

    Pull newer images and restart labeled containers; they need the io.containers.autoupdate=registry label

  • podman system migrate

    Update the OCI runtime and user namespace config after a podman or kernel upgrade; fixes stuck containers

  • podman run -d --name web -p 8080:80 nginx:alpine

    Run nginx in the background without root privileges

  • podman build -t myapp:latest -f Containerfile .

    Build an image from a Containerfile, which uses the same format as a Dockerfile

  • podman generate systemd --new --name web > ~/.config/systemd/user/web.service

    Create a systemd user unit that starts, stops and restarts the container

all 16 podman commands