You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows10 Pro下Docker拉取镜像提示unauthorized认证错误求助

Troubleshooting Docker "unauthorized: authentication required" Error on Windows 10 Pro (Linux Containers)

Hey there, sorry to hear you're stuck with this auth error even after logging in—this is super frustrating when you're just trying to get your containers up and running. Let's walk through some practical troubleshooting steps that usually fix this kind of issue:

  • Verify your login session is active
    Sometimes the login token can expire or fail to save properly. Skip the one-line docker login -u username -p password command (it can mess up with special characters in passwords) and run just docker login instead. Enter your credentials interactively, then test pulling an image directly with docker pull httpd to see if the error clears up.

  • Check your Docker daemon configuration
    Custom registry mirrors or insecure registry settings might be interfering with Docker Hub access. Navigate to C:\ProgramData\Docker\config\daemon.json (create the file if it doesn't exist) and look for entries like registry-mirrors or insecure-registries. If you don't need these for your workflow, comment them out with // or remove them entirely, then restart Docker Desktop from the system tray.

  • Clear stale Docker credentials from Windows Credential Manager
    Windows often caches old or corrupted Docker credentials, which can cause authentication failures. Here's how to fix that:

    1. Open Control Panel > User Accounts > Credential Manager > Windows Credentials
    2. Look for entries tied to Docker, such as docker.io or https://index.docker.io/v1/
    3. Delete those entries, then run docker login again to refresh your credentials
  • Rule out proxy or firewall interference
    Proxies or corporate firewalls can block the authentication request to Docker Hub. Try temporarily disabling any system-wide proxies, and check Docker Desktop's proxy settings (under Settings > Resources > Proxies) to make sure they're not interfering. If disabling proxies fixes the issue, configure your proxy to allow traffic to https://index.docker.io and https://registry-1.docker.io.

  • Reset Docker Desktop as a last resort
    If nothing else works, resetting Docker Desktop to factory defaults can wipe out persistent configuration glitches. Note that this will delete all local images, containers, and volumes, so back up anything important first. Go to Docker Desktop Settings > Reset > Reset to factory defaults, restart Docker, and log in again.

内容的提问来源于stack exchange,提问作者Mohamed Benkedadra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 08:18:16