1.安装
2.运行docker例子hello-world报错
docker run hello-world
runc: symbol lookup error: runc: undefined symbol: seccomp_api_get
docker: Error response from daemon: cannot start a stopped process: unknown.
网上说要安装libseccomp-devel,
yum install libseccomp-devel
但是我安装时找不到该包,后来有文章说要libseccomp2.4以上就可以,我看了下本机是2.3版本,更新成2.5版本
直接删除不行,提示会删除系统文件,所以先找出来
yum history list libseccomp
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
1 | | 2021-09-26 10:37 | Install | 1336 EE
然后根据id卸载
yum history undo 1
3.然后根据下载的rpm文件安装
yum install libseccomp-2.5.1-1.el8.x86_64.rpm
可以从这个地址下载
https://centos.pkgs.org/8/centos-baseos-x86_64/libseccomp-2.5.1-1.el8.x86_64.rpm.html