services: docker: Fix enable-proxy? option.
The userland proxy option does not properly disable the userland proxy when set to false. Docker defaults to enabling the userland proxy if the option is unset on the command line. * gnu/services/docker.scm (docker-shepherd-service): Properly handle the 'enable-proxy?' option. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>master
parent
87a13a5e30
commit
f0a09310e6
|
@ -3,6 +3,7 @@
|
|||
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2020 Jesse Dowell <jessedowell@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -121,9 +122,11 @@ loop-back communications.")
|
|||
#$@(if debug?
|
||||
'("--debug" "--log-level=debug")
|
||||
'())
|
||||
(if #$enable-proxy? "--userland-proxy" "")
|
||||
"--userland-proxy-path" (string-append #$proxy
|
||||
"/bin/proxy")
|
||||
#$@(if enable-proxy?
|
||||
'("--userland-proxy=true"
|
||||
(string-append
|
||||
"--userland-proxy-path=" proxy "/bin/proxy"))
|
||||
'("--userland-proxy=false"))
|
||||
(if #$enable-iptables?
|
||||
"--iptables"
|
||||
"--iptables=false"))
|
||||
|
|
Reference in New Issue