~ruther/guix-local

be3b7f446787033db9405d0d0b821b73f462ed3a — Giacomo Leidi 2 years ago cd8ea37
services: Fix oci-container-service-type container user.

The oci-container-configuration supports two user fields: one is the
user, from the host system, under whose authority the OCI-backed
Shepherd service is run; the other is an optional user/UID that can be
passed to the docker run invokation to override the user defined in the
OCI image.

The user from the host system is incorrectly passed to docker run
command, this patches reverts the incorrect behavior and passes the
correct container-user field value.

* gnu/services/docker.scm (oci-container-configuration): Fix the user
passed to the docker run invokation.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 1 insertions(+), 1 deletions(-)

M gnu/services/docker.scm
M gnu/services/docker.scm => gnu/services/docker.scm +1 -1
@@ 374,7 374,7 @@ documentation for semantics."))
          (network
           (oci-container-configuration-network config))
          (user
           (oci-container-configuration-user config))
           (oci-container-configuration-container-user config))
          (workdir
           (oci-container-configuration-workdir config)))
      (apply append