CentOS 6.10 安装docker失败的一个原因

原因

因为CentOS系统是32位的而不是64位的,官方支持比较少
安装过程错误信息如下:

root@VM_0_14_centos yum.repos.d]# sudo yum install docker
[root@VM_0_14_centos yum.repos.d]# service docker restart
docker: unrecognized service

[root@VM_0_14_centos yum.repos.d]# sudo yum install docker-io
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
No package docker-io available.
Error: Nothing to do

[root@VM_0_14_centos ~]# docker run hello
Segmentation Fault or Critical Error encountered. Dumping core and aborting.
Aborted (core dumped)

正常安装步骤应该使用sudo yum install docker-io命令

查看系统信息

如果输出 x86_64 则表示为 64 位系统,如果输出 i686 或 i386 则表示为 32 位系统。

[root@VM_0_14_centos yum.repos.d]#  cat /etc/redhat-release
CentOS release 6.10 (Final)

[root@VM_0_14_centos yum.repos.d]# arch 
i686

解决办法

  1. 搜索之后发现好像没有支持32位CentOS系统的 😱
    32的ubuntu可以安装docker,但是pull下来的镜像必须是32位的,于是找到了这个:

https://registry.hub.docker.com/repos/32bit/
https://github.com/docker-32bit

  1. 最终我选择了重装CentOS7 64位系统然后执行sudo yum install docker-iosystemctl restart docker命令成功安装docker输入docker version来验证

参考

32位的系统如何使用docker

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值