## 1、安裝
Docker版本:社區版CE、企業版EE
[安裝教程](https://www.runoob.com/docker/centos-docker-install.html)
## 2、 啟動/停止
```
docker version # 查看版本
systemctl start docker # 啟動
systemctl stop docker # 停止
systemctl status docker # 查看狀態
systemctl restart docker # 重啟
systemctl enable docker # 設置開機自動啟動
# 驗證,運行hello world
docker run hello world # 下載hello world鏡像并運行
```
## 3、 配置Docker鏡像加速
使用阿里云提供的鏡像加速(鏡像倉庫),也可以使用網易云等
步驟:
1. 注冊并登陸“阿里云的開發者平臺" http://dev.aliyun.com
2. 查看專屬的加速器地址
3. 配置自己的Docker加速器
```
vi /etc/docker/daemon.json
{
"registry mirrors": ["https://sswv6yx0.mirror.aliyuncs.com"]
}
```
```
systemctl daemon reload
systemctl restart docker
```