ubuntu 16.04 重新安装启动SSH及docker

前端之家收集整理的这篇文章主要介绍了ubuntu 16.04 重新安装启动SSH及docker前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


安装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

猜你在找的Ubuntu相关文章