开发者社区 问答 正文

docker安装时提示异常

sudo yum install docker-ce docker-ce-cli containerd.io Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package containerd.io.x86_64 0:1.2.13-3.2.el7 will be installed --> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.2.13-3.2.el7.x86_64 ---> Package docker-ce.x86_64 3:19.03.9-3.el7 will be installed --> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-19.03.9-3.el7.x86_64 --> Processing Dependency: libcgroup for package: 3:docker-ce-19.03.9-3.el7.x86_64 ---> Package docker-ce-cli.x86_64 1:19.03.9-3.el7 will be installed --> Finished Dependency Resolution Error: Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable) Requires: container-selinux >= 2:2.74 Error: Package: 3:docker-ce-19.03.9-3.el7.x86_64 (docker-ce-stable) Requires: container-selinux >= 2:2.74 Error: Package: 3:docker-ce-19.03.9-3.el7.x86_64 (docker-ce-stable) Requires: libcgroup You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

展开
收起
游客y56qkubaasldk 2020-05-26 11:08:39 2028 分享 版权
1 条回答
写回答
取消 提交回答
  • 我的系统为centos6.9 1、执行命令:uname -a 查看内核版本看看内核是否符合要求 2、执行命令:yum update 更新yum 3、执行命令:yum -y install docker-io 安装docker 可能出现的问题: 1、如果执行过程中出现了下面面的错误说明没有安装 epel Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfileNo package docker-io available.Error: Nothing to do 执行命令: yum-y install epel-release 安装即可 4、执行命令:docker -d 启动守护进行 可能出现的问题: 1、如果未启动docker 守护进程就会出现如下的提示 Get http:///var/run/docker.sock/v1.20/version:dial unix /var/run/docker.sock: no such file 2、如果安装的docker有问题 比如在有的linux版本中使用yum install docker 安装运行时就会报下面的错误 Segmentation Fault or Critical Error encountered. Dumping core and aborting. yum list installed |grep docker 找到安装的docker yum -y remove 然后进行卸载后重新安装 3、如果启动报错误 Error mounting devices cgroup: mountpoint for devices not found 修改/etc/fstab 在改文件的结尾添加none /sys/fs/cgroup cgroup defaults 0 0 然后重启

    2021-02-22 18:00:23
    赞同 展开评论
问答分类:
问答标签:
问答地址: