zoukankan      html  css  js  c++  java
  • docker中国区镜像加速

    [root@syzyy ~]# vim /etc/docker/daemon.json
    {
      "registry-mirros":[
        "https://registry.docker-cn.com"
      ]
    }
    
    [root@syzyy ~]# systemctl restart docker
    [root@syzyy ~]# docker info
    Containers: 4
     Running: 1
     Paused: 0
     Stopped: 3
    Images: 4
    Server Version: 1.13.1
    Storage Driver: overlay2
     Backing Filesystem: extfs
     Supports d_type: true
     Native Overlay Diff: false
    Logging Driver: journald
    Cgroup Driver: systemd
    Plugins: 
     Volume: local
     Network: bridge host macvlan null overlay
    Swarm: inactive
    Runtimes: docker-runc runc
    Default Runtime: docker-runc
    Init Binary: /usr/libexec/docker/docker-init-current
    containerd version:  (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
    runc version: 290a33602b16ff2d1cc5339bc0297f0e094462ce (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
    init version: fec3683b971d9c3ef73f284f176672c44b448662 (expected: 949e6facb77383876aeff8a6944dde66b3089574)
    Security Options:
     seccomp
      WARNING: You're not using the default seccomp profile
      Profile: /etc/docker/seccomp.json
    Kernel Version: 3.10.0-514.26.2.el7.x86_64
    Operating System: CentOS Linux 7 (Core)
    OSType: linux
    Architecture: x86_64
    Number of Docker Hooks: 3
    CPUs: 2
    Total Memory: 3.702 GiB
    Name: syzyy
    ID: BYVL:G5RP:5YUU:BPL3:WGJX:LTAE:I4RY:2GKK:F3IX:Y3DL:KXSG:JBFV
    Docker Root Dir: /var/lib/docker
    Debug Mode (client): false
    Debug Mode (server): false
    Registry: https://index.docker.io/v1/
    Experimental: false
    Insecure Registries:
     127.0.0.0/8
    Registry Mirros:
     https://registry.docker-cn.com/
    Live Restore Enabled: false
    Registries: docker.io (secure)

     使用

    docker pull registry.docker-cn.com/library/nginx:latest
  • 相关阅读:
    ios qq 分享 失败
    Collections在sort()简单分析法源
    C# char[]与string之间的相互转换
    uva 10837
    良好的互联网站点
    SVN库迁移
    Android 它们的定义View它BounceProgressBar
    #AOS应用基础平台# 添加了用户自己定义快捷菜单在平铺布局下的用户自己定义排序管理
    android 逆向project smail 语法学习
    Linux内核-系统调用
  • 原文地址:https://www.cnblogs.com/linyouyi/p/11279430.html
Copyright © 2011-2022 走看看