美文网首页运维的那点事
docker默认配置文件不存在问题

docker默认配置文件不存在问题

作者: 无字天书 | 来源:发表于2019-05-23 15:26 被阅读27次

    第一种方法

    docker是1.12或以上的版本

    1,创建配置文件

    [root@docker-120 ~]# vim /etc/docker/daemon.json

    {

        "registry-mirrors": ["http://hub-mirror.c.163.com"]

    }

    2,加载配置文件并重启

    [root@docker-120 ~]# systemctl restart docker

    [root@docker-120 ~]# docker info

    Registry Mirrors:

    https://cr.console.aliyun.com/                  #此处镜像网易的

    Live Restore Enabled: false

    Product License: Community Engine

    温馨提示:

    国内加速地址

    Docker中国区官方镜像

    https://registry.docker-cn.com

    网易

    http://hub-mirror.c.163.com

    ustc

    https://docker.mirrors.ustc.edu.cn

    中国科技大学

    https://docker.mirrors.ustc.edu.cn

    阿里云容器  服务

    https://cr.console.aliyun.com/

    参考文献:

    https://blog.51cto.com/littledevil/1910423

    http://www.mamicode.com/info-detail-1917569.html


    看官福利:


    结束语:

    更多精彩内容持续更新中,关注我,有你更精彩。

    相关文章

      网友评论

        本文标题:docker默认配置文件不存在问题

        本文链接:https://www.haomeiwen.com/subject/kyovzqtx.html