FAQ: Docker Desktop Kubernetes stuck on "Starting" behind a corporate proxy
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, kubernetes
- Lĩnh vực
- documentation
Hướng nghiên cứu
Payload cung cấp toàn bộ mục FAQ cần thêm: triệu chứng, nguyên nhân (NO_PROXY thiếu kubernetes.docker.internal), các bước kiểm tra bằng PowerShell và cách khắc phục ở cấp người dùng. Hãy tìm trang FAQ chung của Docker Desktop trong repo, nơi liên kết Location trỏ tới, rồi thêm một mục theo đúng định dạng hiện có. Kiểm tra rằng tham chiếu nội bộ SEG-1860 không được chép vào nội dung công khai. Hoàn thành khi mục hiển thị đúng và các lệnh khớp với payload.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Markdown
- Star
- 4.7k
- Fork
- 8.5k
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 126
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của docker/docs
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Debian installation pitfallCó thể đã có người làm @Duo-ee đã nhận 2 ngày trước. Đang mởstatus/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Confusing and contradictory information about paths resolving in extendCó thể đã có người làm @Duo-ee đã nhận 2 ngày trước. Đang mởstatus/triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[docs-scanner] Inconsistent terminology: 'nested organization' vs 'organization in the company'Có thể đã có người làm @dave123981 đã nhận 3 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
status/triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
docker/docs#26484 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
huggingface/diffusers#15170 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
PyLops/pyproximal#280 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
question
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
FoodOntology/foodon#375 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
daniel-ospina/tortoise#10644 ·
Maintainer thường phản hồi trong vòng 1 ngày