diff options
author | umohnani8 <umohnani@redhat.com> | 2018-06-11 15:27:42 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-09 19:30:03 +0000 |
commit | 4855998f1cf533b27e48b2ded5541841fe6a3ea6 (patch) | |
tree | 7bb7e276e04f7d235e667bf088e5c87e43a74924 /libpod/container_internal_linux.go | |
parent | c7424b69911222c2dc92a41308685f1e6d36fb53 (diff) | |
download | podman-4855998f1cf533b27e48b2ded5541841fe6a3ea6.tar.gz podman-4855998f1cf533b27e48b2ded5541841fe6a3ea6.tar.bz2 podman-4855998f1cf533b27e48b2ded5541841fe6a3ea6.zip |
Add --volumes-from flag to podman run and create
podman now supports --volumes-from flag, which allows users
to add all the volumes an existing container has to a new one.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes: #931
Approved by: mheon
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r-- | libpod/container_internal_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index 0dc02d117..9ad825458 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -127,7 +127,7 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) { // Bind builtin image volumes if c.config.Rootfs == "" && c.config.ImageVolumes { - if err := c.addImageVolumes(ctx, &g); err != nil { + if err := c.addLocalVolumes(ctx, &g); err != nil { return nil, errors.Wrapf(err, "error mounting image volumes") } } |