Expected Behavior
DockerBuildImage should be able to successfully finish the build Docker image task.
Current Behavior
DockerBuildImage fails the build Docker image task if the image is already built previously and the following file exists: build/.docker/docker_buildImage-imageId.txt.
The error message is the following:
Cannot invoke "java.util.List.containsAll(java.util.Collection)" because "repoTags" is null






Context
I want to build a Docker image as a Gradle task so I can use it in a later task.
Steps to Reproduce (for bugs)
- Run the Docker build for the first time.
- Keep intact the generated files and images.
- Run the Docker build again to make it fail.
Your Environment
Gradle Docker plugin artifact: com.bmuschko.docker-remote-api:9.4.0
Gradle version: 8.11.1
OS: Windows 11
Possible workaround
Before every Docker image build, delete either the previously built Docker image, or the following file: build/.docker/docker_buildImage-imageId.txt.
Expected Behavior
DockerBuildImageshould be able to successfully finish the build Docker image task.Current Behavior
DockerBuildImagefails the build Docker image task if the image is already built previously and the following file exists:build/.docker/docker_buildImage-imageId.txt.The error message is the following:
Context
I want to build a Docker image as a Gradle task so I can use it in a later task.
Steps to Reproduce (for bugs)
Your Environment
Gradle Docker plugin artifact: com.bmuschko.docker-remote-api:9.4.0
Gradle version: 8.11.1
OS: Windows 11
Possible workaround
Before every Docker image build, delete either the previously built Docker image, or the following file:
build/.docker/docker_buildImage-imageId.txt.