Tips

  • プログラムのコードは /mnt/c/配下に置かない。Linuxのファイルシステム(EXT4)上に置く。

トラブルシューティング

Proxy環境対応

Docker クライアントアプリでプロキシ設定 ... 成功

  • Docker クライアントアプリの Settings / Resources の PROXIESを開く
  • 「Manual proxy configuration」をONにする
  • Web Server (HTTP), Web Server (HTTPS) を設定し反映

環境設定ファイルでプロキシ設定 ... なぜか失敗

  • $HOME/.docker/config.json に以下のようにプロキシ設定を追記する
{
    "credsStore": "desktop.exe",
    "proxies":
    {
        "default":
        {
            "httpProxy": "http://127.0.0.1:3001",
            "httpsProxy": "http://127.0.0.1:3001",
            "noProxy": "*.test.example.com,.example2.com"
        }
    }
}

docker-machine がない

docker run hello-world を実行すると以下のエラー

Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).

proxyconnect tcp:eof

  • プロキシ設定値が間違っている可能性がある
    • https用のURLが https:// ではなく、http:// が正しいなど

docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:80: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

  • 指定したポート番号が利用できないというエラー
  • 利用している他のプロセスを停止するか、別のポート番号を使用する

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-05-18 (火) 17:54:26 (1074d)