FAQ: Docker Desktop Kubernetes stuck on "Starting" behind a corporate proxy

オープン 初心者向け
#26,511 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@aevesdocker がすでに取り組んでいます。

2026年11月2日 から。

  • #26515 @aevesdocker による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, kubernetes
領域
documentation

調査の方向性

payload には追加すべき FAQ エントリーの全文が含まれています。内容は、症状、原因(NO_PROXY に kubernetes.docker.internal が含まれていない)、PowerShell での確認手順、およびユーザーレベルでの修正方法です。リポジトリ内で、Location リンクの参照先である Docker Desktop の一般 FAQ ページを見つけ、既存の形式に従ってセクションを追加してください。社内参照である SEG-1860 を公開テキストにコピーしていないか確認してください。セクションが正しく表示され、そのコマンドが payload と一致していれば完了です。

索引モデルが issue の本文から書いたものです。

説明

status/triage
Is this a docs issue?
  • My issue is about the documentation content or website
Type of issue

Other

Description

Kubernetes stuck on "Starting" on a corporate laptop? A proxy is probably catching the local address kubernetes.docker.internal. Add it to NO_PROXY.

Symptom
• Docker Desktop shows Starting – waiting for node to be ready and never finishes.
• kubectl get nodes fails with Get "https://kubernetes.docker.internal:6443/...": Bad Gateway or "https://kubernetes.docker.internal:6443/...":Forbidden"
• The cluster itself is running (docker ps shows the control-plane containers up).

Cause
The laptop has HTTP_PROXY / HTTPS_PROXY set, and NO_PROXY doesn't list kubernetes.docker.internal. Docker's kubeconfig uses that name, so the request goes to the proxy, which answers 502 Bad Gateway. The IP 127.0.0.1 is never proxied, which is why it works directly.

Verify
In PowerShell (use curl.exe, not curl):

Get-ChildItem Env: | Where-Object Name -match 'proxy'
curl.exe -vk https://kubernetes.docker.internal:6443/version
curl.exe -vk --noproxy "*" https://kubernetes.docker.internal:6443/version

The plain curl.exe returns 502; with --noproxy "*" it returns 200 and the version JSON.

Fix
Set NO_PROXY at user level. This replaces the old value, so keep the existing entries. For example:

[Environment]::SetEnvironmentVariable('NO_PROXY','localhost,127.0.0.1,.example.com,kubernetes.docker.internal,.docker.internal','User')
Location

https://docs.docker.com/desktop/troubleshoot-and-support/faqs/general/

Suggestion

There are two different business customer experiencing that Kubernetes stuck on "Starting" behind a corporate proxy. A proxy is probably catching the local address kubernetes.docker.internal. Therefore, suggesting to document this publicly.

Internal reference

  1. Resolved in SEG-1860
  2. Same mechanism in a #desktop thread on: https://docker.slack.com/archives/C0W4XJVFW/p1737531452641359
主要言語
Markdown
スター
4.7k
フォーク
8.5k
平均マージ
2日 14時間
マージ済み PR(30日)
129

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docs のほかの issue

docker/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。