久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      docker proxy是什么

      在docker中,proxy指的是代理軟件或者代理服務(wù)器,用來進(jìn)行事物不能進(jìn)行的操作;當(dāng)docker在執(zhí)行“docker pull”、“docker push”等操作需要代理訪問鏡像倉(cāng)庫(kù)時(shí),和容器內(nèi)部需要代理訪問網(wǎng)絡(luò)時(shí)都會(huì)使用proxy。

      docker proxy是什么

      本教程操作環(huán)境:linux7.3系統(tǒng)、docker-1.13.1版、Dell G3電腦。

      docker proxy是什么

      指的是代理軟件或代理服務(wù)器,也可以認(rèn)為是一種網(wǎng)絡(luò)訪問方式。

      代理類,用來進(jìn)行事物不想或不能進(jìn)行的其他操作,比如當(dāng)你對(duì)數(shù)據(jù)庫(kù)進(jìn)行操作時(shí),代理可以在你對(duì)數(shù)據(jù)庫(kù)操作完后,記錄下你所進(jìn)行的操作。

      docker使用proxy分兩種情況:

      • docker client希望使用代理,也就是在執(zhí)行docker pull、docker push等操作時(shí)通過代理來訪問鏡像倉(cāng)庫(kù)

      • 容器實(shí)例希望使用代理,也就是在容器內(nèi)部希望通過代理來訪問網(wǎng)絡(luò)

      一、配置client 代理(常規(guī)安裝方式)

      1、創(chuàng)建配置文件

      sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf

      2、添加配置

      [Service] Environment="HTTP_PROXY=http://211.69.198.232:8118" Environment="HTTPS_PROXY=http://211.69.198.232:8118" Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp,211.69.198.232"

      3、重啟容器

      sudo systemctl daemon-reload sudo systemctl restart docker

      二、配置容器實(shí)例代理

      方式一,配置文件(僅支持 Docker 版本 >= 17.07)

      1、創(chuàng)建配置文件

      vim  ~/.docker/config.json

      2、添加配置信息

      {  "proxies":  {    "default":    {      "httpProxy": "http://211.69.198.232:8118",      "httpsProxy": "http://211.69.198.232:8118",      "noProxy": "*.test.example.com,.example2.com,127.0.0.0/8,211.69.198.232"    }  }

      推薦學(xué)習(xí):《docker視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)