多图预警

0x00.安装

0x01.移除Amazon

sudo apt-get remove unity-webapps-common

0x02.卸载libreoffice

sudo apt-get remove libreoffice-common
sudo apt autoremove

0x06.安装Docker

卸载旧版本
sudo apt-get remove docker docker-engine docker.io
更新apt
sudo apt-get update
安装https支持包

1
2
3
4
5
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common

添加Docker官方GPG密钥
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

1
2
3
4
5
6
$ sudo apt-key fingerprint 0EBFCD88

pub 4096R/0EBFCD88 2017-02-22
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid Docker Release (CE deb) <docker@docker.com>
sub 4096R/F273FCD8 2017-02-22

添加稳定版的仓库源(amd64)

1
2
3
4
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

安装DOCKER CE
sudo apt-get update
sudo apt-get install docker-ce
sudo systemctl enable docker
sudo systemctl start docker
配置加速器
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://e6d6fb48.m.daocloud.io
测试,需要sudo
sudo docker run hello-world
建立docker用户组
sudo groupadd docker
sudo usermod -aG docker $(whoami)
重新登录,这样无需sudo
docker run hello-world