安装SSH
sudo apt-get install openssh-server
sudo service ssh status
安装docker
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get install docker-engine
sudo service docker start
run without sudo
添加当前用户到docker组
$ sudo groupadd docker
$ sudo gpasswd -a ${USER} docker
$ sudo service docker restart
注销当前用户,重新登陆
配置 Docker 加速器 curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://7160e08b.m.daocloud.io 原文链接:https://www.f2er.com/ubuntu/351671.html