logo
当前位置:首 页 > 编程技术 >后端开发 >docker > 查看文章

微服务的兴起,Google的支持等让docker火的一塌糊涂,docker在云平台都有相应的镜像选择,在aws上ec2都是内置在aws系统上的,针对外国的微服务是目前我们公司服务的客户系统用到的,都是些跨国企业,可能用到的服务都不能用国产的,例如我们的路由器就是思科的,虽然我们也为华为服务。所以这个还真不知道为啥,国内的各大云服务用了下,发现还是阿里云值得称赞:阿里云在做内外的物理机房和节点分布应该是最多的,aws在国内虽然也有2个节点,但是如果不是特别需要的话不建议大家使用,我们开发的4台设备都是无法使用80和443端口,找客服也是无法解决。使用境外服务器的话特别的卡顿,阿里云就不会,只要域名备案的话服务器端口是不会阻断的,境外的阿里云在境内应该是做了加速,顺畅度超aws。

==============我是正文的分割线====================

问题一、使用默认安装报错

安装命令如下:

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

也可以使用国内 daocloud 一键安装命令:

curl -sSL https://get.daocloud.io/docker | sh

使用的阿里云的速度和安装都没问题,但是我本地的物理电脑和VMware的centos安装的时候可能是因为版本问题等会报错:

查了一圈试了一圈,目前是用一下方法解决的:

  1. yum install --allowerasing docker-ce

 

问题二、装好后运行一直报错

运行提示:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

 

docker装好了;运行命令分别是:

  1. service docker start #启动docker
  2.  
  3. service docker stop #停止docker
  4.  
  5. service docker restart #重启docker

但是每次重启就要重新来一次,有点。。。

所以可以设置开机启动:

 

  1. systemctl enable docker

 

 

问题:

 

Error: 
 Problem: problem with installed package podman-2.0.5-5.module_el8.3.0+512+b3b58dca.x86_64
  - package podman-2.0.5-5.module_el8.3.0+512+b3b58dca.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed
  - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-68.rc92.module_el8.3.0+475+c50ce30b.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-68.rc92.module_el8.3.0+475+c50ce30b.x86_64
  - conflicting requests
  - package runc-1.0.0-64.rc10.module_el8.3.0+479+69e2ae26.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.3.7-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.3.9-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.4.3-3.1.el7.x86_64 is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost kurt]# yum erase podman buildah

 

 

解决办法:

 

yum erase podman buildah

 

 

 

 

 

 

说说梦想,谈谈感悟 ,聊聊技术,有啥要说的来github留言吧 https://github.com/cjx2328

—— 陈 建鑫

陈建鑫
你可能也喜欢Related Posts
footer logo
未经许可请勿自行使用、转载、修改、复制、发行、出售、发表或以其它方式利用本网站之内容。站长联系:cjx2328#126.com(修改#为@)
Copyright ©ziao design Studio All Rights Reserved.沪ICP备14052271号-3