Reputation: 13
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
Upvotes: 0
Views: 789
Reputation: 13
It has been solved using mount option :Z
$ podman run container -v /local/dir:/container/dir:Z -d image:latest
Upvotes: 0