diff options
author | Matthew Heon <mheon@redhat.com> | 2018-12-11 10:26:10 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2018-12-11 13:36:50 -0500 |
commit | bc57ecec42e53635bb4846a4af321b6203f78854 (patch) | |
tree | 046b78855b7c95842905d99e45a7cba026c04a72 /libpod/container_internal_linux.go | |
parent | b6763143be70472e6e28883beed180e772661e9e (diff) | |
download | podman-bc57ecec42e53635bb4846a4af321b6203f78854.tar.gz podman-bc57ecec42e53635bb4846a4af321b6203f78854.tar.bz2 podman-bc57ecec42e53635bb4846a4af321b6203f78854.zip |
Prevent a second lookup of user for image volumes
Instead of forcing another user lookup when mounting image
volumes, just use the information we looked up when we started
generating the spec.
This may resolve #1817
Signed-off-by: Matthew Heon <mheon@redhat.com>
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 f9b0592f9..4f2955110 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -236,7 +236,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.addLocalVolumes(ctx, &g); err != nil { + if err := c.addLocalVolumes(ctx, &g, execUser); err != nil { return nil, errors.Wrapf(err, "error mounting image volumes") } } |