【问题标题】:Getting crun error when running container using podman in RHEL 9在 RHEL 9 中使用 podman 运行容器时出现运行错误
【发布时间】:2022-12-14 04:02:40
【问题描述】:

我正在尝试在 RHEL 9 中使用 podman 运行容器,出现以下错误,有任何指导和建议吗?

[ahmad@rhel9-2 ~]$ podman run -d -it --name php-app -v /home/ahmad/app/:/app:Z -p 8080:80 docker.io/webdevops/php-apache
Trying to pull docker.io/webdevops/php-apache:latest...
Getting image source signatures
Copying blob 30611fcc1b5e done
Copying blob 5bed26d33875 done
Copying blob f11b29a9c730 done
Copying blob 930bda195c84 done
Copying blob 78bf9a5ad49e done
Copying blob 4c8b85719399 done
Copying blob f70f19977fc5 done
Copying blob 5131985698ec done
Copying blob 65538e0c8933 done
Copying blob d43f884b2c0e done
Copying blob 20d592fa47f1 done
Copying blob d3f32720a7f3 done
Copying blob 2f8bf6213034 done
Copying blob 8356225c2f81 done
Copying config eff3c24c72 done
Writing manifest to image destination
Storing signatures
/usr/bin/crun: symbol lookup error: /usr/bin/crun: undefined symbol: criu_feature_check
ERRO[0158] Removing container f7f815e200f4a97cc48e3f325f447eefdd250cb866edd228e70d5dba310d8775 from runtime after creation failed
Error: OCI runtime error: crun: /usr/bin/crun: symbol lookup error: /usr/bin/crun: undefined symbol: criu_feature_check

卸载并重新安装@container-tools,没有帮助。

【问题讨论】:

  • 也许您的 crun 和 podman 版本不匹配?
  • 作为解决方法,您应该能够切换回 runc 而不是使用 crun。例如,运行“podman --runtime runc run -d ...”或者您可以在 /usr/share/containers/containers.conf 文件中永久更改。

标签: containers redhat podman redhat-containers rhel9


【解决方案1】:

显然这是crun [1] 中的一个错误。你必须通过执行sudo dnf install crun-1.4.5-2.el9_0.x86_64来降级你的crun

[1] https://access.redhat.com/discussions/6988326

【讨论】:

    猜你喜欢
    • 2022-10-18
    • 1970-01-01
    • 2022-01-20
    • 2019-12-04
    • 1970-01-01
    • 1970-01-01
    • 2019-09-25
    • 1970-01-01
    相关资源
    最近更新 更多