[TOC]
### YUM安装
```
yum install docker -y
```
### 镜像加速
#### 1. 修改配置文件
> vim /etc/docker/daemon.json
~~~
{"registry-mirrors":["https://registry.docker-cn.com"]}
~~~
#### 2. 重启服务
```
sudo systemctl daemon-reload
sudo systemctl restart docker
```
### docker相关操作
```
systemctl start docker #启动docker
systemctl enable docker #开机启动docker
systemctl status docker #查看docker状态
```