【问题标题】:Unable to use --pod option with podman无法将 --pod 选项与 podman 一起使用
【发布时间】:2021-05-04 06:22:02
【问题描述】:

我在 CentOS 上运行 podman,当我使用 --pod 选项时收到错误消息。

[user@server ~]$ podman pod create -n hello
[user@server ~]$ podman run --pod hello hello-world
ERRO[0035] error starting some container dependencies
ERRO[0035] "container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting \"sysfs\" to rootfs at \"/sys\" caused: operation not permitted: OCI permission denied"
Error: error starting some containers: internal libpod error

如果我不使用 --pod 选项,这将正常工作。
这是因为我使用了错误的选项吗?
还是 podman 的 bug?

这是服务器信息。

[user@server ~]$ cat /etc/redhat-release
CentOS Stream release 8
[user@server ~]$ podman -v
podman version 3.0.0-dev

[后记]
我将版本更改为2.2.1,错误发生了变化。
但是,它仍然无法正常工作。

[user@server ~]$ podman run --pod hello hello-world
ERRO[0000] error starting some container dependencies
ERRO[0000] "selinux label is specified in config, but selinux is disabled or not supported: OCI runtime error"
Error: error starting some containers: internal libpod error
[user@server ~]$ podman -v
podman version 2.2.1

【问题讨论】:

  • 您正在运行 podman 的开发版本,这很可能是 podman 错误。如果你获取一个发布版本(例如2.2.1),你有同样的问题吗?
  • 我更改了版本,但无法正常工作。但是,错误已经改变。我已将错误添加到问题文本中。

标签: docker containers centos8 podman


【解决方案1】:

我在版本 3.0.0-dev 中找到了错误原因。
原因是我没有安装crun.
这可以使用以下命令安装。

[user@server ~]$ sudo dnf install crun

【讨论】:

    猜你喜欢
    • 2022-08-06
    • 1970-01-01
    • 2020-12-15
    • 2021-06-19
    • 2012-12-27
    • 1970-01-01
    • 2017-07-27
    • 2018-12-13
    • 1970-01-01
    相关资源
    最近更新 更多