Windows初次使用docker常见问题

问题描述

  • 提示“docker: error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Head “http://%2F%2F.%2Fpipe%2Fdocker_engine/_ping”: open //./pipe/docker_engine: The system cannot find the file specified.
    解决方法:docker桌面端没运行呢,先打开
    在这里插入图片描述
  • 提示“docker: Error response from daemon: Head “https://registry-1.docker.io/v2/library/redis/manifests/latest”: unauthorized: incorrect username or password.
    See ‘docker run --help’.

    解决方法:Docker 从 Docker Hub 上拉取镜像时遇到了权限验证问题,可能未登录 Docker Hub 账户。使用docker login指令
PS C:\Users\Administrator> docker login
Authenticating with existing credentials...
Stored credentials invalid or expired
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/
Username (*******): 
Password:
Login Succeeded

输入账号密码即可解决

  • 提示“docker: Error response from daemon: Get “https://registry-1.docker.io/v2/library/redis/manifests/sha256:e…”: EOF.
    拉取镜像提示EOF。大概率是镜像源的问题,
    解决方法:重新设置镜像来源:点击设置->DockerEngine->输入镜像配置->Apply&restart(不行配置完之后再重启下docker)
    在这里插入图片描述
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值