wffger的deepin指南-docker-ce 安装
Tofloor
poster avatar
188******56
deepin
2018-03-25 20:01
Author
本帖最后由 wffger 于 2018-6-11 10:36 编辑

参考官方文档https://docs.docker.com/install/linux/docker-ce/debian/#install-docker-ce

下面为Deepin 15.5,安装最新amd64 docker-ce的命令:


  1. sudo apt-get remove docker docker-engine docker.io
  2. sudo apt-get update
  3. sudo apt-get install \
  4.      apt-transport-https \
  5.      ca-certificates \
  6.      curl \
  7.      gnupg2 \
  8.      software-properties-common
  9. curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/debian/gpg | sudo apt-key add -
  10. sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian jessie stable"
Copy the Code
注意,官方的命令:

  1. sudo add-apt-repository \
  2.    "deb [arch=amd64] https://download.docker.com/linux/debian \
  3.    $(lsb_release -cs) \
  4.    stable"
Copy the Code
我修改为了:
  1. sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian jessie stable"
Copy the Code
使用阿里云国内源,并指定为jessie版本。
为什么要修改为jessie版本?因为Deepin是基于Debian开发的,但是Deepin下执行lsb_release -cs返回的是unstable,如果使用官方命令,会导致找不到对应的路径,所以硬编码为jessie,不知道是不是最合适,但是亲测可安装成功并启动hello-world。
祝,有深度,能容器(*^__^*) 嘻嘻……

Reply Favorite View the author
All Replies
avatar
159******79
deepin
2018-03-25 21:08
#1
对的,自己修改下过去系统信息的部分就行了
Reply View the author
avatar
155******38
deepin
2018-03-26 00:37
#2
我改成debian10的,docker源,也能装
Reply View the author
avatar
36******12@qq.com
deepin
2018-03-26 07:16
#3
wiki里也有的
Reply View the author
avatar
188******56
deepin
2018-03-26 18:01
#4

论坛搜索框搜索不到Wiki相关内容,可能是权重太低了……
Reply View the author
avatar
152******22
deepin
2018-03-26 18:28
#5
https://bbs.deepin.org/post/154643
论坛搜索框搜索不到Wiki相关内容,可能是权重太低了……

论坛和Wiki不是同一个东西。
Reply View the author