services: oci-container: Fix provided image is string.
gnu/services/docker.scm (oci-container-shepherd-service): When image is oci-image, call %oci-image-loader. Change-Id: I26105e82643affe9e7037975e42ec9690089545b
This commit is contained in:
parent
425cf1fbe2
commit
2b2337f275
1 changed files with 13 additions and 12 deletions
|
@ -687,9 +687,10 @@ operating-system, gexp or file-like records but ~a was found")
|
|||
(if (oci-image? image) name image) "."))
|
||||
(start
|
||||
#~(lambda ()
|
||||
(when #$(oci-image? image)
|
||||
(invoke #$(%oci-image-loader
|
||||
#$@(if (oci-image? image)
|
||||
#~((invoke #$(%oci-image-loader
|
||||
name image image-reference)))
|
||||
#~())
|
||||
(fork+exec-command
|
||||
;; docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
|
||||
(list #$docker "run" "--rm" "--name" #$name
|
||||
|
|
Reference in a new issue