Bruno Furtado
Bruno Furtado

Reputation: 13

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

Upvotes: 0

Views: 789

Answers (1)

Bruno Furtado
Bruno Furtado

Reputation: 13

It has been solved using mount option :Z

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

Upvotes: 0

Related Questions