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>
This commit is contained in:
Giacomo Leidi 2023-12-01 23:45:05 +01:00 committed by Ludovic Courtès
parent cd8ea377d7
commit be3b7f4467
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -374,7 +374,7 @@ (define oci-container-configuration->options
(network (network
(oci-container-configuration-network config)) (oci-container-configuration-network config))
(user (user
(oci-container-configuration-user config)) (oci-container-configuration-container-user config))
(workdir (workdir
(oci-container-configuration-workdir config))) (oci-container-configuration-workdir config)))
(apply append (apply append