Podman 配置奇怪的行为

Podman 配置奇怪的行为

我尝试在无根模式下使用 Podman 并收到“错误:chmod /media/user:不允许操作”。我已经在 /home/user/.config/containers/storage.conf 中设置了 graphroot 和 rootless_storage_path (见下文)。这是奇怪的事情..当我更改此文件中的 runRoot 并检查podman info没有任何反应时。但是当我更改 graphRoot 并检查时,runRoot 被更改。更奇怪的是,当我将 graphRoot 改回来时,它会自行将 runRoot 改回来。

任何人都可以解释一下吗?谢谢

[storage]

# Default Storage Driver, Must be set for proper operation.
#driver = "overlay"
driver = "vfs"

# Temporary storage location
#runroot = "/media/user/temp/containers/run"
runroot = "/run/user/1000"

# Primary Read/Write location of container storage
graphroot = "/media/user/temp/containers/storage1"

# Storage path for rootless users
rootless_storage_path = "/media/user/temp/containers/storage"

我在 GitHub 上创建了一个问题:https://github.com/containers/podman/issues/18692

相关内容