diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-30 12:01:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 12:01:40 -0400 |
commit | c2a0ccd39464a91b7ba5fdca3af3c2ed66f2cbca (patch) | |
tree | dd7389bb37563a5636f34b3cf41f1cb2e37f2122 /libpod/runtime_ctr.go | |
parent | 83bde3bdaf7f7b24f9ad794154207a95e7747f28 (diff) | |
parent | ce74c20ebc07ea541b7cdccd272e34c0336ffbc3 (diff) | |
download | podman-c2a0ccd39464a91b7ba5fdca3af3c2ed66f2cbca.tar.gz podman-c2a0ccd39464a91b7ba5fdca3af3c2ed66f2cbca.tar.bz2 podman-c2a0ccd39464a91b7ba5fdca3af3c2ed66f2cbca.zip |
Merge pull request #6747 from giuseppe/fix-user-volumes
container: move volume chown after spec generation
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r-- | libpod/runtime_ctr.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go index dd6602acb..74647dab8 100644 --- a/libpod/runtime_ctr.go +++ b/libpod/runtime_ctr.go @@ -309,7 +309,7 @@ func (r *Runtime) setupContainer(ctx context.Context, ctr *Container) (_ *Contai logrus.Debugf("Creating new volume %s for container", vol.Name) // The volume does not exist, so we need to create it. - volOptions := []VolumeCreateOption{WithVolumeName(vol.Name), WithVolumeUID(ctr.RootUID()), WithVolumeGID(ctr.RootGID())} + volOptions := []VolumeCreateOption{WithVolumeName(vol.Name), WithVolumeUID(ctr.RootUID()), WithVolumeGID(ctr.RootGID()), WithVolumeNeedsChown()} if isAnonymous { volOptions = append(volOptions, withSetAnon()) } |