docker安装

curl -fsSL https://get.docker.com/ | sh
If you would like to use Docker as a non-root user, you should now consider
adding your user to the “docker” group with something like:
如果需要使用一个非管理员用户,需要将这个用户添加进docker组
 sudo usermod -aG docker your-user
[root@6 ~]# 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.
service docker restart