From 4ce53cb20b99e2340f3769c5efdfe87e6d74c794 Mon Sep 17 00:00:00 2001 From: Enno Tensing Date: Tue, 29 Jul 2025 09:50:56 +0200 Subject: [PATCH] example.container: Update example config with volume mount options Volumes can be mounted with some different flags or no flags at all. Since converting the string into an object would be overkill, as most of the time the default options should suffice, and branching in Volumes.from_json() to handle both strings and objects is also no the cleanest method, implement it by using what already exists. Mount points are not checked by the script, so the mount options can just be added to the CONTAINER-DIR part of the volume config. Signed-off-by: Enno Tensing --- example.container | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.container b/example.container index b910c6e..6092452 100644 --- a/example.container +++ b/example.container @@ -42,7 +42,7 @@ } }, "volumes": { - "etc": "/etc", + "etc": "/etc:ro,noexec", "var": "/var" }, "capabilities": {