Deepin安装最新Docker

Deepin安装最新Docker

1.卸载旧版本(如果有安装过)

sudo apt-get remove docker docker-engine

2.安装Docker

$ sudo apt-get install apt-transport-https ca-certificates curl python-software-properties software-properties-common
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
$ cat /etc/debian_version
再根据上面显示的版本号替换掉下面命令的wheezy
$ sudo add-apt-repository "deb [arch=amd64] 
https://download.docker.com/linux/debian wheezy stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce
$ sudo docker version
$ sudo docker run hello-world

3.默认开机自启,可以设置不开机自启

# 安装chkconfig
$ sudo apt-get install chkconfig

# 移除自启
$ sudo chkconfig --del docker

你可能感兴趣的:(Deppin)