mirror of
https://github.com/containers/podman.git
synced 2025-10-19 20:23:08 +08:00
specgen: Use platform-specific mount type for volume mounts
[NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containers/common/pkg/parse"
|
"github.com/containers/common/pkg/parse"
|
||||||
|
"github.com/containers/podman/v4/libpod/define"
|
||||||
spec "github.com/opencontainers/runtime-spec/specs-go"
|
spec "github.com/opencontainers/runtime-spec/specs-go"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
@ -159,7 +160,7 @@ func GenVolumeMounts(volumeFlag []string) (map[string]spec.Mount, map[string]*Na
|
|||||||
} else {
|
} else {
|
||||||
newMount := spec.Mount{
|
newMount := spec.Mount{
|
||||||
Destination: dest,
|
Destination: dest,
|
||||||
Type: "bind",
|
Type: define.TypeBind,
|
||||||
Source: src,
|
Source: src,
|
||||||
Options: options,
|
Options: options,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user