From 7b44454d018e8896ca731d49fba0dfcbd63827ae Mon Sep 17 00:00:00 2001 From: asoldino Date: Sat, 17 Apr 2021 10:04:38 +0200 Subject: [PATCH] Add documentation of dockerVolumeMount (#453) --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 7756de23..d529a62e 100644 --- a/README.md +++ b/README.md @@ -613,6 +613,17 @@ spec: # You can customise this setting allowing you to change the default working directory location # for example, the below setting is the same as on the ubuntu-18.04 image workDir: /home/runner/work + # You can mount some of the shared volumes to the dind container using dockerVolumeMounts, like any other volume mounting. + # NOTE: in case you want to use an hostPath like the following example, make sure that Kubernetes doesn't schedule more than one runner + # per physical host. You can achieve that by setting pod anti-affinity rules and/or resource requests/limits. + volumes: + - name: docker-extra + hostPath: + path: /mnt/docker-extra + type: DirectoryOrCreate + dockerVolumeMounts: + - mountPath: /var/lib/docker + name: docker-extra ``` ### Runner labels