deepin 15.11添加docker源并安装docker
Tofloor
poster avatar
thepoy
deepin
2020-01-27 17:34
Author
本帖最后由 thepoy 于 2020-1-27 09:40 编辑

参考官方文档中的Debian安装部分:https://docs.docker.com/install/linux/docker-ce/debian/
具体操作步骤为:
1、卸载旧版本:
  1. sudo apt-get remove docker docker-engine docker.io containerd runc
Copy the Code
2、安装依赖
先update
  1. sudo apt update
Copy the Code
再装依赖
  1. sudo apt-get install \
  2.     apt-transport-https \
  3.     ca-certificates \
  4.     curl \
  5.     gnupg2 \
  6.     software-properties-common
Copy the Code
3、添加官方GPG密钥
  1. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
Copy the Code
验证:
  1. sudo apt-key fingerprint 0EBFCD88
Copy the Code
正确结果:
pub   4096R/0EBFCD88 2017-02-22      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88uid                  Docker Release (CE deb) <https://bbs.deepin.org/module>sub   4096R/F273FCD8 2017-02-22
4、添加源
  1. echo "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" \
  2.     | sudo tee /etc/apt/sources.list.d/docker.list
Copy the Code
5、更新
  1. sudo apt update
Copy the Code
6、安装docker
  1. sudo apt-get install docker-ce docker-ce-cli containerd.io
Copy the Code
7、验证docker是否安装成功,查询版本就可以
  1. docker -v
Copy the Code
  1. >>> Docker version 19.03.5, build 633a0ea838
Copy the Code



Reply Favorite View the author
All Replies
avatar
wei_pan
deepin
2020-01-27 17:54
#1
最后效果是什么样的啊
Reply View the author
avatar
thepoy
deepin
2020-01-27 18:54
#2
https://bbs.deepin.org/post/188281
最后效果是什么样的啊

什么叫效果?docker还有什么效果吗?这只是环境容器啊
Reply View the author
avatar
wei_pan
deepin
2020-01-27 18:57
#3
https://bbs.deepin.org/post/188281
什么叫效果?docker还有什么效果吗?这只是环境容器啊

抱歉,我还以为是下面那个图标栏
Reply View the author
avatar
thepoy
deepin
2020-01-27 20:10
#4
https://bbs.deepin.org/post/188281
抱歉,我还以为是下面那个图标栏

deepin的dock栏就已经够好了
Reply View the author
avatar
wei_pan
deepin
2020-01-27 20:24
#5
https://bbs.deepin.org/post/188281
deepin的dock栏就已经够好了

是的,但是我偶然发现了plank,这个比原来的多个了动态效果。
Reply View the author
avatar
Jack
deepin
2020-05-21 17:55
#6
谢谢楼主的分享。
Reply View the author