ubuntu16.4版本安装docker-ce提示Package 'docker-ce' has no installation candidate解决的办法


如果出现了Package 'docker-ce' has no installation candidate 的提示,并且你已经执行apt-get update的命令

依次再执行以下命令:

  #配置阿里云的gpg
  curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

  #配置阿里云的docker镜像
  sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
  #执行安装命令 sudo apt-get install docker-ce docker-ce-cli containerd.io
提示安装成功!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM