From e00aede5b81e75e6b0b2b72382c62d5eb80b7889 Mon Sep 17 00:00:00 2001 From: Ygal Blum Date: Fri, 9 Jan 2026 10:07:44 -0500 Subject: [PATCH] Volume options - allow nocreate option Signed-off-by: Ygal Blum --- common/pkg/parse/parse.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/pkg/parse/parse.go b/common/pkg/parse/parse.go index 11d59a1b94..15527f611b 100644 --- a/common/pkg/parse/parse.go +++ b/common/pkg/parse/parse.go @@ -99,6 +99,10 @@ func ValidateVolumeOpts(options []string) ([]string, error) { if foundCopySymlink > 1 { return nil, fmt.Errorf("invalid options %q, can only specify 1 'no-dereference' option", strings.Join(options, ", ")) } + case "nocreate": + // nocreate is a podman specific flag that is used to prevent the + // automatic creation of a volume if it does not exist + // it will be parsed later default: return nil, fmt.Errorf("invalid option type %q", opt) }