summaryrefslogtreecommitdiff
path: root/Docker-in-docker.md
blob: 9a2eae4f43e659215a7f72809318611087dfa2a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[[Use YAML anchors to reuse scripts in Gitlab CI]]

**To use docker-in-docker** we need to specify a tag, a service and a specific image:
```
  tags:
    - docker-in-docker
  image: harbor.one.com/docker-hub/library/docker:latest
  services:
    - docker:dind
```

> It's not possible with a custom CI image afaik, so everything needs to run inside a docker container.