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

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

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.

      
  - task: Docker@2
    displayName : Login to Docker Hub
    inputs:
        command: login
        containerRegistry: Docker_Hub #fypproject #dockerRegistryServiceConnection1 #

  - task: DockerInstaller@0
    displayName: Docker Installer
    inputs:
        dockerVersion: 17.09.0-ce
        releaseType: stable
    
  - task: Docker@2
    displayName: Build and Push
    inputs:
        command: buildAndPush
        repository:   max/newimage # username/contosoRepository for DockerHub
        #$dockerfile: /workspaces/FYP_Project/.devcontainer/Dockerfile
        dockerfile: /workspaces/FYP_Project/.devcontainer/Dockerfile
    #env:
       # 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
        #PATH: /workspaces/FYP_Project/.devcontainer/Dockerfile

picture of how the repo looks like

答案1

得分: 0

根据文档,应该是:

Dockerfile:/workspaces/FYP_Project/.devcontainer/Dockerfile

注意大写的 D

英文:

According to the documentation, It should be:

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:

确定