FAQ: Docker Desktop Kubernetes stuck on "Starting" behind a corporate proxy
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- docker, kubernetes
調査の方向性
payload には追加すべき FAQ エントリーの全文が含まれています。内容は、症状、原因(NO_PROXY に kubernetes.docker.internal が含まれていない)、PowerShell での確認手順、およびユーザーレベルでの修正方法です。リポジトリ内で、Location リンクの参照先である Docker Desktop の一般 FAQ ページを見つけ、既存の形式に従ってセクションを追加してください。社内参照である SEG-1860 を公開テキストにコピーしていないか確認してください。セクションが正しく表示され、そのコマンドが payload と一致していれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- Resolved in SEG-1860
- Same mechanism in a #desktop thread on: https://docker.slack.com/archives/C0W4XJVFW/p1737531452641359
- 主要言語
- Markdown
- スター
- 4.7k
- フォーク
- 8.5k
- 平均マージ
- 2日 14時間
- マージ済み PR(30日)
- 129
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/docs のほかの issue
-
Debian installation pitfall対応中かも @Duo-ee が 3 日前に担当しました。 オープンstatus/triage
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Confusing and contradictory information about paths resolving in extend対応中かも @Duo-ee が 3 日前に担当しました。 オープンstatus/triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[docs-scanner] Inconsistent terminology: 'nested organization' vs 'organization in the company'対応中かも @dave123981 が 4 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
status/triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docker/docs#26484 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
elastic/elastic-otel-python#683 ·
メンテナーはふだん 1 日以内に返信
-
docs(metrics): replace stale src/metrics.rs line anchors in dashboard-metrics.md with symbol namesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
lesson-submission pending-review
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Ikalus1988/MisakaNet#4393 ·
メンテナーはふだん 1 日以内に返信