From af992a38c5a2441f1d66b8c74155e969b12a7426 Mon Sep 17 00:00:00 2001 From: sthope Date: Sat, 4 Sep 2021 18:04:57 +0200 Subject: [PATCH] Update 'drone-ci/README.md' --- drone-ci/README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drone-ci/README.md b/drone-ci/README.md index e13a2dd..e72a79a 100644 --- a/drone-ci/README.md +++ b/drone-ci/README.md @@ -1 +1,28 @@ -# .drone.yml \ No newline at end of file +# .drone.yml + +## Docker Pipeline + +### Example Docker Configuration +This guide covers configuring continuous integration pipelines for projects that have a Docker dependency. If you’re new to Drone please read our Tutorial and build configuration guides first. + +### Basic Example +In the below example we demonstrate a pipeline that connects to the host machine Docker daemon by mounting a volume. For security reasons, only trusted repositories can mount volumes. Furthermore, mounting the host machine Docker socket is highly insecure, and should only be used in trusted environments. +``` +--- +kind: pipeline +name: default + +steps: +- name: test + image: docker:dind + volumes: + - name: dockersock + path: /var/run/docker.sock + commands: + - docker ps -a + +volumes: +- name: dockersock + host: + path: /var/run/docker.sock +... \ No newline at end of file