Azure / acr-builder

Azure Container Registry Build Runner
MIT License
38 stars 35 forks source link

Scanning for dependencies fail when building using docker BUILDKIT #574

Closed mnltejaswini closed 3 years ago

mnltejaswini commented 3 years ago

Describe the bug When building with DOCKER_BUILDKIT=1, the build fails to scan dependencies with the following error

failed to query digests, msg:
Error: No such object: mcr.microsoft.com/dotnet/sdk:3.1
: exit status 1

To Reproduce Steps to reproduce the behavior:

  1. create a simple Dockerfile Sample Dockerfile

    FROM mcr.microsoft.com/dotnet/sdk:3.1
  2. create a task file to build that docker file with BUILDKIT enabled

    version: v1.1.0
    steps:
    - id: build
    build: -t $Registry/test:$ID -f Dockerfile .
    env: ["DOCKER_BUILDKIT=1"]
  3. The build fails to scan dependencies.

    Error: No such object: mcr.microsoft.com/dotnet/sdk:3.1
    : exit status 1 

Expected behavior The build should be success and provide dependencies. Screenshots If applicable, add screenshots to help explain your problem.

Any relevant environment information

This is related to an existing issue in scanning dependencies when build cache is enabled #522

shahzzzam commented 3 years ago

Fixed by #580

jmsalvo commented 3 years ago

Has this fix been deployed? I'm still seeing this issue when building using docker BUILDKIT.

shahzzzam commented 3 years ago

Its been fixed but not deployed, Sorry for the confusion. Re-opened the issue

jmsalvo commented 3 years ago

Thank you for the update

northtyphoon commented 3 years ago

The fix has been deployed.