From 7b7a8bf2923d06cdaad10663700e3bccc3fb7627 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 21 Jan 2023 14:09:20 +0100 Subject: container: T4947: support mounting container volumes as ro or rw Whenever a container is used and a folder is mounted, this happenes as read-write which is the default in Docker/Podman - so is the default in VyOS. A new option is added "set container name foo volume mode " to specify explicitly if rw (default) or ro should be used for this mounted folder. (cherry picked from commit 275ea7303cfdb79c042da1b710622aee17a488a8) --- interface-definitions/container.xml.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'interface-definitions') diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in index 4bac305d1..b61664125 100644 --- a/interface-definitions/container.xml.in +++ b/interface-definitions/container.xml.in @@ -274,6 +274,26 @@ + + + Volume access mode ro/rw + + ro rw + + + ro + Volume mounted into the container as read-only + + + rw + Volume mounted into the container as read-write + + + (ro|rw) + + + rw + -- cgit v1.2.3