From 67008c47cf9d5a2c49d444074073d1f226aa7da5 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Sat, 26 Apr 2025 12:39:01 +0300 Subject: [PATCH] Mention named volumes (#5130) --- docs/docs/20-usage/70-volumes.md | 2 ++ docs/versioned_docs/version-3.5/20-usage/70-volumes.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/docs/20-usage/70-volumes.md b/docs/docs/20-usage/70-volumes.md index 6897053fb..cc9ba7d6b 100644 --- a/docs/docs/20-usage/70-volumes.md +++ b/docs/docs/20-usage/70-volumes.md @@ -19,6 +19,8 @@ Volumes are only available to trusted repositories and for security reasons shou + - /var/run/docker.sock:/var/run/docker.sock ``` +If you use the Docker backend, you can also use named volumes like `some_volume_name:/var/run/volume`. + Please note that Woodpecker mounts volumes on the host machine. This means you must use absolute paths when you configure volumes. Attempting to use relative paths will result in an error. ```diff diff --git a/docs/versioned_docs/version-3.5/20-usage/70-volumes.md b/docs/versioned_docs/version-3.5/20-usage/70-volumes.md index 6897053fb..cc9ba7d6b 100644 --- a/docs/versioned_docs/version-3.5/20-usage/70-volumes.md +++ b/docs/versioned_docs/version-3.5/20-usage/70-volumes.md @@ -19,6 +19,8 @@ Volumes are only available to trusted repositories and for security reasons shou + - /var/run/docker.sock:/var/run/docker.sock ``` +If you use the Docker backend, you can also use named volumes like `some_volume_name:/var/run/volume`. + Please note that Woodpecker mounts volumes on the host machine. This means you must use absolute paths when you configure volumes. Attempting to use relative paths will result in an error. ```diff