0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WSL2 & Windows10 & Docker Desktop for Windows 環境でproxy設定

Last updated at Posted at 2021-07-29

初めに

結構書かれている内容だけど、備忘録もかねて、タイトル通りの環境で docker build をするための設定を記録する。

プロキシは電気通信大学で使用するものをそのまま利用した。

Docker Engine

"buildkit" の項を false にする。全文は下記の通り。理由不明。

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "debug": false,
  "experimental": false,
  "features": {
    "buildkit": false
  },
  "insecure-registries": [],
  "registry-mirrors": []
}

config.json

PowerShellからdockerコマンドを実行する場合は C:/Users/<ユーザー名>/.docker/config.json を下記のようにする。

{"credsStore":"desktop","proxies":{"default":{"httpProxy":"http://proxy.cc.uec.ac.jp:8080","httpsProxy":"http://proxy.cc.uec.ac.jp:8080"}},"stackOrchestrator":"swarm"}

再起動をする

終わりに

これでできるはず。なにか手違いがあったらスマン。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?