GitLab CI Kotlin DSL • opensavvy.gitlab.ci.plugins • Docker • Companion • useDockerInDocker
useDockerInDocker¶
fun Job.useDockerInDocker(dockerVersion: String = "20.10", dockerInDockerVersion: String = "-dind")
Configures the current job to use the docker
command using Docker In Docker.
For more information, see the GitLab documentation.
Parameters¶
- dockerVersion
-
The version of Docker to use, which must correspond to a tag of the official docker image.
- dockerInDockerVersion
-
The version of the Docker, which must correspond to a tag of the official docker image with DinD enabled.
Samples¶
opensavvy.gitlab.ci.plugins.DockerTest.buildImage