【发布时间】:2022-10-18 08:30:12
【问题描述】:
我正在尝试运行具有持久卷的 mysql 容器,但是当我运行下面的命令时,我收到一个错误,指导将 unshare 与 rootless 一起使用:
$podman unshare chown 27:27 -R /home/user1/tmp
Error: please use unshare with rootless
【问题讨论】:
-
如果你运行 $
chown -R xxx:xxx /home/user1/tmp会发生什么(其中 xxx 是 /etc/subuid 中用户的起始范围 + 26。)你会设法在容器中使用持久卷吗?
标签: containers podman