Search code examples
containerspodman

Getting error running "podman unshare chown"


I'm trying to run a mysql container with a persistent volume but when I run the command below I got an error guiding to use unshare with rootless:

$podman unshare chown 27:27 -R /home/user1/tmp
Error: please use unshare with rootless

Solution

  • It has been solved using mount option :Z

    $ podman run container -v /local/dir:/container/dir:Z -d image:latest