docker相关配置

避免 Docker Hub 限制,最好配置镜像

配置文件:/lib/systemd/system/docker.service

把文件里ExecStart=/usr/bin/dockerd-current替换成ExecStart=/usr/bin/dockerd-current --registry-mirror=https://a14c78qe.mirror.aliyuncs.com即可

 配置成功后可查看docker运行状态:systemctl status docker

 查找要下载的文件:docker search nginx

 

posted @ 2024-07-03 14:31  钟爱酷夏  阅读(16)  评论(0)    收藏  举报