buildkit icon indicating copy to clipboard operation
buildkit copied to clipboard

Unable to produce consistent digest id even with cache provided

Open aggo15 opened this issue 3 years ago • 0 comments

Creating new issue under moby/buildkit regarding this issue I created under docker/buildkit.

Basically I want to build an image with consistent digest id regardless of where I throw my source code on, assuming no change on source code. This is to make sure that in the event of my build machine down, I can still build an image on other machine that produce the same digest id.

Based on my observation so far, wherever we execute docker buildx create, a container using image moby/buildkit:buildx-stable-1 will start up and a volume map to /var/lib/buildkit will be created as well. All the image cache content seems to stored there and there are no ways to share them between different build machines. As a result, the image build on multiple machine will produce different digest id even though they use the same source code.

My questions is, is there any effort to address this digest id issue?

aggo15 avatar Aug 10 '22 07:08 aggo15