话不多说,直接上错误信息。

fetch failed to pull image golang: API error (500): {“message”:“toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit"}

小盆友,你是否有很多问号。

没关系传送门来解答。

如果你通过上面的链接已经解决,那很好。下面不用看了。


如果你是通过Hexo迁移到Hugo建的博客,想直接复制粘贴,那么,我这直接给出wercker.yml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
box:
  id: golang:latest
  username: $DOCKERHUB_USERNAME
  password: $DOCKERHUB_PASSWORD

build:
  steps:
    - script:
        name: initialize and update git submodules
        code: |
            git submodule init
            git submodule update --remote --recursive            
    - arjen/hugo-build@2.14.0:
        version: "0.79.0"
        theme: even
        flags: --environment=production

deploy:
  steps:
    - install-packages:
            packages: git ssh-client
    - lukevivier/gh-pages@0.2.1:
        token: $GIT_TOKEN
        basedir: public

另外,还需要配置环境变量,如图。

图片

其中DOCKERHUB_PASSWORD可以是Docker Hub密码,也可以是TOKEN(从这里获取)。

如果,你使用自己的Docker Hub账号还是会有这种问题,那么就使用钞能力吧。

注意

2022.11.03: 此时Wercker已经停服了,所以此文所述问题已经不复存在