Ubuntu安装Docker
#### 环境需求
System: Ubuntu14.04的64位系统
#### 设置root账号登录禁用guest
1. 为root设置密码
sudo passwd root
2. 修改配置文件
修改 /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf 文件,命令如下:
gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
在文件末尾添加如下内容:
greeter-show-manual-login=true
allow-guest=false
3.给max用户,使用sudo:
vim /etc/sudoers 查看
#User privilege specification
root ALL=(ALL:ALL) ALL
max ALL=(ALL:ALL) ALL
##### Installation Docker
$ sudo apt-get install apt-transport-https
$ curl -sSL https://get.docker.com/ | sh
$ service docker status
$ service docker restart
Centos安装Docker
#### 环境需求
System: Centos 6.9的64位系统
#### Installation Docker
lsb_release -a
yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum update
yum install docker-io
docker version
service docker start
chkconfig docker on