summaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-04-03 19:44:51 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-04-04 12:27:20 -0400
commit42c95eed2cedc1769987984a073e2ec71970e123 (patch)
tree61046432d3486f9b3efb4cb5bbcda960f7110e38 /libpod/runtime_ctr.go
parent3e066e29202118e6cca60be516ddc08cc7a9060e (diff)
downloadpodman-42c95eed2cedc1769987984a073e2ec71970e123.tar.gz
podman-42c95eed2cedc1769987984a073e2ec71970e123.tar.bz2
podman-42c95eed2cedc1769987984a073e2ec71970e123.zip
Major rework of --volumes-from flag
The flag should be substantially more durable, and no longer relies on the create artifact. This should allow it to properly handle our new named volume implementation. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r--libpod/runtime_ctr.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index ba643150d..800b42851 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -182,6 +182,8 @@ func (r *Runtime) newContainer(ctx context.Context, rSpec *spec.Spec, options ..
return nil, errors.Wrapf(err, "error retrieving named volume %s for new container", vol.Name)
}
+ logrus.Debugf("Creating new volume %s for container", vol.Name)
+
// The volume does not exist, so we need to create it.
newVol, err := r.newVolume(ctx, WithVolumeName(vol.Name), withSetCtrSpecific(),
WithVolumeUID(ctr.RootUID()), WithVolumeGID(ctr.RootGID()))