cmliu / CF-Workers-docker.io

这个项目是一个基于 Cloudflare Workers 的 Docker 镜像代理工具。它能够中转对 Docker 官方镜像仓库的请求,解决一些访问限制和加速访问的问题。
https://docker.fxxk.dedyn.io
5.69k stars 6.85k forks source link

[功能建议]现在容器需要登录,提示:Error response from daemon: unauthorized: authentication required #36

Open cffycls opened 2 months ago

cffycls commented 2 months ago

现在容器需要登录,提示:Error response from daemon: unauthorized: authentication required

:~# docker pull nginx:stable-alpine
Error response from daemon: unauthorized: authentication required

增加可配置环境变量,如(workflows.yaml): https://github.com/docker/login-action

# 登录到 Docker Hub
        name: Login to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
imdingtalk commented 2 months ago

不明所以~

cffycls commented 2 months ago

@imdingtalk 上面这个是拉取时的命令和返回:

docker pull nginx:stable-alpine
Error response from daemon: unauthorized: authentication required

拉不下来,显示需要登录授权