From a5adc3d80f7387c75c83f1e0c7ad3333fdc48806 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 29 Jul 2021 08:34:49 -0700 Subject: Add support for mount options to API When creating containers the specialized mount options where not populated via the API. Fixes: #10831 Signed-off-by: Jhon Honce --- pkg/specgenutil/volumes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/specgenutil') diff --git a/pkg/specgenutil/volumes.go b/pkg/specgenutil/volumes.go index e9f70fc9d..0ed08198f 100644 --- a/pkg/specgenutil/volumes.go +++ b/pkg/specgenutil/volumes.go @@ -620,9 +620,9 @@ func getTmpfsMounts(tmpfsFlag []string) (map[string]spec.Mount, error) { mount := spec.Mount{ Destination: filepath.Clean(destPath), - Type: string(define.TypeTmpfs), + Type: define.TypeTmpfs, Options: options, - Source: string(define.TypeTmpfs), + Source: define.TypeTmpfs, } m[destPath] = mount } -- cgit v1.2.3-54-g00ecf