ADO pipeline breaking when using 'buildx' plugin to build image #1837
Unanswered
AsapHogFtw
asked this question in
Q&A
Replies: 1 comment 1 reply
-
docker build 환경이 docker 컨테이너로 되어 있을경우 동일한 증상이 발생적이 있습니다. 같은환경이면 host에 docker build 환경을 구성후 컨테이너로 공유하여 진행해보시기 바랍니다. The same symptom has occurred when the docker build environment is a docker container. If it is the same environment, please proceed by configuring the docker build environment on the host and sharing it as a container. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking for any input to an issue I am experiencing in my ADO pipeline. Below is an example of the first part of the Dockerfile (all that is needed for demonstration) that keeps failing:
Now when I set the ENV_VAR DOCKER_BUILDKIT=0 then the pipeline will build the image just fine and without issue; this is because it is using the legacy docker build, which is technically deprecated functionality. However, when this value is set to 1, which it is by default, then the docker-buildx is used, and it causes a very generic error to occur on the last line of the Dockerfile:
For reference, here is the
build.dockerImage.yml
file that I am using to for the pipeline:I am using buildx-v0.10.4.linux-amd64 plugin (installed at path /usr/local/lib/docker/cli-plugins/) from github, on my build agent which is an Ubuntu 20.04 docker container, with Docker version 23.0.1 and Docker Compose version 2.17.2.
I was not able to find much in the way of this issue online and am not exactly sure what it could be. If I comment out the last line of the Dockerfile, it will build fine, even when using the buildx plugin, so I feel that something has to be going on between the way that the legacy build and the current buildx is interacting or affecting the way that the dotnet publish command is operating.
Does anyone have any ideas or insight to this kind of problem?
Beta Was this translation helpful? Give feedback.
All reactions