Wercker部署为Docker推送返回404

第一次与Wercker和我使用internal/docker-push 。 当我运行我的部署步骤时,从docker-hub收到404错误。

 ERROR Error interacting with this repository: wluce/statler-waldorf-corp-team-service PUT https://registry.hub.docker.com/v1/repositories/wluce/statler-waldorf-corp-team-service/ returned 404 

这不是我第一次运行这个步骤,它的工作之前。 图像存在,在这里 。

我无法弄清楚会发生什么变化。

这里是我用来执行构build和部署的wercker.yml文件。

 box: microsoft/dotnet:2.0.0-sdk-2.0.2 no-response-timeout: 10 build: steps: - script: name: restore cwd: src/StatlerWaldorfCorp.TeamService code: dotnet restore - script: name: build cwd: src/StatlerWaldorfCorp.TeamService code: dotnet build - script: name: test-restore cwd: test/StatlerWaldorfCorp.TeamService.Tests code: dotnet restore - script: name: test-build cwd: test/StatlerWaldorfCorp.TeamService.Tests code: dotnet build - script: name: test-run cwd: test/StatlerWaldorfCorp.TeamService.Tests code: dotnet test - script: name: integration-test-restore cwd: test/StatlerWaldorfCorp.TeamService.Tests.Integration code: dotnet restore - script: name: integration-test-build cwd: test/StatlerWaldorfCorp.TeamService.Tests.Integration code: dotnet build - script: name: integration-test-run cwd: test/StatlerWaldorfCorp.TeamService.Tests.Integration code: dotnet test - script: name: publish cwd: src/StatlerWaldorfCorp.TeamService code: dotnet publish -o publish - script: name: copy binary cwd: src/StatlerWaldorfCorp.TeamService code: cp -r . $WERCKER_OUTPUT_DIR/app deploy: box: microsoft/aspnetcore:2.0.0 steps: - internal/docker-push: cwd: $WERCKER_OUTPUT_DIR/app username: $DOCKER_USERNAME password: $DOCKER_PASSWORD repository: wluce/statler-waldorf-corp-team-service registry: https://registry.hub.docker.com entrypoint: "/pipeline/source/app/docker_entrypoint.sh" 

正如韦克尔松弛通道中所讨论的,并build议使用@cggaldes,解决scheme是在步骤定义上设置完整的registry地址,如:

 - internal/docker-push: registry: https://registry.hub.docker.com/v2 <-- This repository: org/repo username: $DOCKER_USER password: $DOCKER_PASS ... 

显然, internal/docker-push使用v1默认情况下最近更改/中断。

在内部/docker推入步骤,只需添加registry与v2追加使wercker使用v2registryAPI像这样

  repository: gapostolov/course-repo registry: https://registry.hub.docker.com/v2