diff options
Diffstat (limited to 'cmd/podman/spec.go')
-rw-r--r-- | cmd/podman/spec.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/spec.go b/cmd/podman/spec.go index 14fe3a38a..fbe611cc3 100644 --- a/cmd/podman/spec.go +++ b/cmd/podman/spec.go @@ -652,6 +652,10 @@ func (c *createConfig) GetContainerCreateOptions() ([]libpod.CtrCreateOption, er } } + if len(c.Volumes) != 0 { + options = append(options, libpod.WithUserVolumes()) + } + if c.NetMode.IsContainer() { connectedCtr, err := c.Runtime.LookupContainer(c.NetMode.ConnectedContainer()) if err != nil { |