CentOS 7 安装 Docker
安装:
yum install docker
安装后启动:
[root@localhost ~]# sudo service docker start
Redirecting to /bin/systemctl start docker.service
设置开机启动
[root@localhost ~]# sudo chkconfig docker on
注意:正在将请求转发到“systemctl enable docker.service”。
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.