多图预警

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
sudo apt-get install \
2
    apt-transport-https \
3
    ca-certificates \
4
    curl \
5
    software-properties-common

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

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

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

1
sudo add-apt-repository \
2
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
3
   $(lsb_release -cs) \
4
   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