A Docker image for Drone CI that starts an isolated Docker daemon
3.4K
This repository builds a Docker image to be used with Drone CI that starts an isolated Docker daemon for your builds. This enables the building of Docker-based projects in Drone.
Given a repository containing a Dockerfile, put the following in
your Drone configuration file .drone.yml:
image: dflemstr/drone-dind
script:
- docker build -t me/myservice .
- docker push me/myservice:latest
Add this repository to your Drone instance, making sure that you use privileged containers (since Docker-in-Docker requires that). You can now successfully build Docker-based projects on top of Drone.
The image contains two scripts, start-docker and stop-docker, that
will start and stop the inner Docker daemon, respectively. There is
also a file called docker-helper.sh that gets sourced by Drone on
every build, that makes sure that start-docker is ran before, and
stop-docker is ran after the build.
Content type
Image
Digest
sha256:e82aa1dc0…
Size
91.4 MB
Last updated
almost 11 years ago
docker pull dflemstr/drone-dind