diff --git a/distribution/docker/build.gradle b/distribution/docker/build.gradle index 3f07630ca0920..62cba7a6fc060 100644 --- a/distribution/docker/build.gradle +++ b/distribution/docker/build.gradle @@ -553,6 +553,7 @@ subprojects { Project subProject -> inputs.file("${parent.projectDir}/build/markers/${buildTaskName}.marker") executable = 'docker' outputs.file(tarFile) + outputs.doNotCacheIf("Build cache is disabled for export tasks") { true } args "save", "-o", tarFile,