linux(CentOS 7)下安装docker 以及Splash

转载自:
https://my.oschina.net/u/3546952/blog/1825493
我执行如下命令时报错:
[root@localhost ~]# yum-config-manager > --add-repo > https://download.docker.com/linux/centos/docker-ce.repo
-bash: https://download.docker.com/linux/centos/docker-ce.repo: No such file or directory

这里我进入了 /etc/yum.repos.d文件夹下直接下载:

wget https://download.docker.com/linux/centos/docker-ce.repo

然后下载:

yum insall docker-ce.x86_64

我安装时存在一个error:

Transaction check error:
  file /usr/bin/docker from install of docker-ce-18.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-63.git94f4240.el7.centos.x86_64
  file /usr/bin/docker-containerd from install of docker-ce-18.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-63.git94f4240.el7.centos.x86_64
  file /usr/bin/docker-containerd-shim from install of docker-ce-18.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-63.git94f4240.el7.centos.x86_64
  file /usr/bin/dockerd from install of docker-ce-18.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-63.git94f4240.el7.centos.x86_64

Error Summary
-------------

这是因为我下载过旧版本,没有卸载完全,卸载就好了:

rpm -e docker-common
rpm -e docker-client

如果有依赖关系,可以先卸载依赖关系应用,也可以强制卸载,这里就不多说,自行百度

卸载完成后重新下载:

yum insall docker-ce.x86_64

启动服务:

systemctl start docker
systemctl enable docker

安装Splash依照原作者一样:

docker pull scrapinghub/splash
完成!




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值