找不到匹配 /home/vscode/azure-pipelines/_work/1/s/**/Dockerfile 的 Dockerfile。

huangapple go评论158阅读模式
英文:

No Dockerfile matching /home/vscode/azure-pipelines/_work/1/s/**/Dockerfile was found

问题

在管道中安装Docker后,之前的问题得到了解决。但现在它显示没有匹配的Dockerfile。

我已经尝试了不同路径的Dockerfile所在位置,但错误仍未解决。

英文:

After installing the docker in the pipeline, it fixed the issue before.
But now it says that there is no dockerfile matching.

I have try different path where the dockerfile is located at but the error has not been solved.

  1. - task: Docker@2
  2. displayName : Login to Docker Hub
  3. inputs:
  4. command: login
  5. containerRegistry: Docker_Hub #fypproject #dockerRegistryServiceConnection1 #
  6. - task: DockerInstaller@0
  7. displayName: Docker Installer
  8. inputs:
  9. dockerVersion: 17.09.0-ce
  10. releaseType: stable
  11. - task: Docker@2
  12. displayName: Build and Push
  13. inputs:
  14. command: buildAndPush
  15. repository: max/newimage # username/contosoRepository for DockerHub
  16. #$dockerfile: /workspaces/FYP_Project/.devcontainer/Dockerfile
  17. dockerfile: /workspaces/FYP_Project/.devcontainer/Dockerfile
  18. #env:
  19. # PATH: /vscode/bin/linux-x64/695af097c7bd098fbf017ce3ac85e09bbc5dda06/bin/remote-cli:/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:/usr/local/sdkman/candidates/ant/current/bin:/usr/local/dotnet/current:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.dotnet/tools:/home/vscode/.local/bin
  20. #PATH: /workspaces/FYP_Project/.devcontainer/Dockerfile

picture of how the repo looks like

答案1

得分: 0

根据文档,应该是:

  1. Dockerfile:/workspaces/FYP_Project/.devcontainer/Dockerfile

注意大写的 D

英文:

According to the documentation, It should be:

  1. Dockerfile: /workspaces/FYP_Project/.devcontainer/Dockerfile

Notice the uppercase D.

huangapple
  • 本文由 发表于 2023年6月18日 22:06:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76500951.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定