<label id="60jrf"><meter id="60jrf"><bdo id="60jrf"></bdo></meter></label>
    <thead id="60jrf"><optgroup id="60jrf"></optgroup></thead>

      <span id="60jrf"><optgroup id="60jrf"><center id="60jrf"></center></optgroup></span>
      1. docker在ubuntu無法安裝鏡像TLS handshake timeout解決方法
        作者:admin | 時間:2020-11-18 20:54:40

        sudo docker pull redis:latest

        Error response from daemon: Get https://registry-1.docker.io/v2/library/redis/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fredis%3Apull&service=registry.docker.io: net/http: TLS handshake timeout



        linux系統下運行一下命令后,速度飛起

        curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://3056ffe7.m.daocloud.io

        a.png


        運行成功后會為docker創建daemon.json內寫入并配置國內鏡像地址:

        1. {
        2.  "registry-mirrors": ["http://3056ffe7.m.daocloud.io"]
        3. }

        然后重啟docker生效

        sudo systemctl restart docker.service


        如果使用上面自動命令還有報錯的話,可以在手動修改/etc/docker/daemon.json文件

        在ubuntu系統下docker目錄/etc/docker/下面默認可能只有key.json   如果找不到daemon.json可以手動創建寫入以下配置:

        {  "registry-mirrors": [    "https://khec465u.mirror.aliyuncs.com"  ] }

        然后重啟docker生效

        sudo systemctl restart docker.service


        資訊內容

        誠信為本,卓越品質,做行業領跑者