summaryrefslogtreecommitdiff
path: root/pkg/specgen/volumes.go
diff options
context:
space:
mode:
authorDoug Rabson <dfr@rabson.org>2022-08-27 13:21:36 +0100
committerDoug Rabson <dfr@rabson.org>2022-08-30 16:32:24 +0100
commitda57065abdcac276fd922b3e736517c9384ec20e (patch)
tree5e20f7a58d1e17d67fe9e69db9f1edd91d34003c /pkg/specgen/volumes.go
parent0300271bf73d515393ac41f354a39889b07b88fc (diff)
downloadpodman-da57065abdcac276fd922b3e736517c9384ec20e.tar.gz
podman-da57065abdcac276fd922b3e736517c9384ec20e.tar.bz2
podman-da57065abdcac276fd922b3e736517c9384ec20e.zip
specgen: Use platform-specific mount type for volume mounts
[NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
Diffstat (limited to 'pkg/specgen/volumes.go')
-rw-r--r--pkg/specgen/volumes.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/specgen/volumes.go b/pkg/specgen/volumes.go
index e70ed5b13..e71d14331 100644
--- a/pkg/specgen/volumes.go
+++ b/pkg/specgen/volumes.go
@@ -7,6 +7,7 @@ import (
"strings"
"github.com/containers/common/pkg/parse"
+ "github.com/containers/podman/v4/libpod/define"
spec "github.com/opencontainers/runtime-spec/specs-go"
"github.com/sirupsen/logrus"
)
@@ -159,7 +160,7 @@ func GenVolumeMounts(volumeFlag []string) (map[string]spec.Mount, map[string]*Na
} else {
newMount := spec.Mount{
Destination: dest,
- Type: "bind",
+ Type: define.TypeBind,
Source: src,
Options: options,
}