diff options
author | Giacomo Leidi <goodoldpaul@autistici.org> | 2023-12-01 23:45:05 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-12-10 22:23:29 +0100 |
commit | be3b7f446787033db9405d0d0b821b73f462ed3a (patch) | |
tree | fcfbe53cfc412227b5d7c7343894f1c79e93cf72 /gnu/services | |
parent | cd8ea377d74e25e28d5e7adf801a65865e698c70 (diff) | |
download | guix-be3b7f446787033db9405d0d0b821b73f462ed3a.tar.gz guix-be3b7f446787033db9405d0d0b821b73f462ed3a.zip |
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>
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/docker.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/services/docker.scm b/gnu/services/docker.scm index ebea0a473a..72ef7d74db 100644 --- a/gnu/services/docker.scm +++ b/gnu/services/docker.scm @@ -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 |