异常处理_docker服务启动异常-离线安装

docker服务启动异常-离线安装

docker chromium/chrome: error while loading shared libraries: libXcursor.so.2: cannot open shared object file: No such file or directory

root@localhost / # systemctl start docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

用 systemctl status docker.service 查看

root@localhost / # systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2022-07-01 15:20:54 CST; 11s ago
     Docs: http://docs.docker.com
  Process: 4008 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=127)
 Main PID: 4008 (code=exited, status=127)

Sep 08 16:20:54 localhost systemd[1]: Starting Docker Application Container Engine...
Sep 08 16:20:54 localhost dockerd-current[4008]: /usr/bin/dockerd-current: error while loading shared libraries: libseccomp.so.2: cannot open shared object file: No such...r directory
Sep 08 16:20:54 localhost systemd[1]: docker.service: main process exited, code=exited, status=127/n/a
Sep 08 16:20:54 localhost systemd[1]: Failed to start Docker Application Container Engine.
Sep 08 16:20:54 localhost systemd[1]: Unit docker.service entered failed state.
Sep 08 16:20:54 localhost systemd[1]: docker.service failed.

解决方法

yumdownloader --resolve libseccomp --destdir=/root/docker
tar -czvf libseccomp.tgz *.rpm
# 上传离线
tar -xzvf libseccomp.tgz
sudo rpm --force --nodeps -ivh --replacefiles --replacepkgs *.rpm
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值