Class Validation
java.lang.Object
io.github.pgatzka.docker.internal.Validation
Cross-reference and shape validation for the
docker {} extension. Run from
DockerPlugin.apply(org.gradle.api.Project) via
project.afterEvaluate(...) so all containers, volumes, and networks have been
registered before checks run.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidate(DockerExtension extension) Validate the configured Docker extension after evaluation.
-
Method Details
-
validate
Validate the configured Docker extension after evaluation.- Parameters:
extension- the configured Docker extension- Throws:
org.gradle.api.GradleException- if a container declares no image, has duplicate mount targets, references an undeclared volume or network, or collides with another container on daemon-side container name or published host port
-