移动docker启动服务
cp /lib/systemd/system/docker.service /etc/systemd/system/docker.service
chmod a+x /etc/systemd/system/docker.service
添加阿里地址
vim /etc/systemd/system/docker.service
ExecStart=/usr/bin/dockerd --registry-mirror=https://kfp63jaj.mirror.aliyuncs.com
重启检查
systemctl daemon-reload
systemctl restart docker
检查
ps -ef | grep docker
#结果
root 1742 1 1 07:52 ? 00:00:00 /usr/bin/dockerd --registry-mirror=https://kfp63jaj.mirror.aliyuncs.com
root 1745 1742 0 07:52 ? 00:00:00 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim docker-containerd-shim --runtimedocker-runc
root 1835 1097 0 07:52 pts/0 00:00:00 grep --color=auto docker