diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-04-03 19:44:51 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-04-04 12:27:20 -0400 |
commit | 42c95eed2cedc1769987984a073e2ec71970e123 (patch) | |
tree | 61046432d3486f9b3efb4cb5bbcda960f7110e38 /libpod/runtime_ctr.go | |
parent | 3e066e29202118e6cca60be516ddc08cc7a9060e (diff) | |
download | podman-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.go | 2 |
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())) |