【问题标题】:Getting error running "podman unshare chown"运行“podman unshare chown”时出错
【发布时间】: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


【解决方案1】:

使用挂载选项:Z 已解决此问题

【讨论】:

    猜你喜欢
    • 2021-12-04
    • 2022-12-14
    • 1970-01-01
    • 2021-01-09
    • 2020-07-18
    • 2022-06-21
    • 2019-10-25
    • 2023-01-31
    • 2019-09-25
    相关资源
    最近更新 更多