diff options
| author | Giacomo Leidi <therewasa@fishinthecalculator.me> | 2025-10-25 22:35:51 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-25 22:17:41 +0000 |
| commit | bfa4e179e285d6521351a9d8eea6074630bbe62a (patch) | |
| tree | e2ecbfb9213d2973eb1ec1452919453e7e22bd93 /doc | |
| parent | 9f976927fc15ca5cce3fc527dc2a4844d113a4f7 (diff) | |
services: Support list of strings for oci-container-configuration's entrypoint.
Dockerfile's ENTRYPOINT statement supports also a list of strings. This
patch implements this behavior for oci-container-configuration.
* oci/services/containers.scm (string-or-list-of-strings?): New
procedure.
(oci-container-configuration)[entrypoint]: Change field type to
maybe-string-or-list-of-strings.
(oci-container-configuration->options): Use it.
* doc/guix.texi: Document it.
Change-Id: I1c94dec79c9f4b2324225810a7926be251bfd795
Reviewed-by: Owen T. Heisler <writer@owenh.net>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index bb07432d49b..0bbad147e8a 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -45659,8 +45659,9 @@ The group under whose authority docker commands will be run. @item @code{command} (default: @code{'()}) (type: list-of-strings) Overwrite the default command (@code{CMD}) of the image. -@item @code{entrypoint} (default: @code{""}) (type: string) -Overwrite the default entrypoint (@code{ENTRYPOINT}) of the image. +@item @code{entrypoint} (default: @code{""}) (type: string-or-list-of-strings) +Overwrite the default entrypoint (@code{ENTRYPOINT}) of the image. It can +be either a string, or a list of strings. @item @code{host-environment} (default: @code{'()}) (type: list) Set environment variables in the host environment where @samp{docker run} |
