Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ci.pluginsDockerCompanionuseDockerInDocker

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