mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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>
This commit is contained in:
parent
87a13a5e30
commit
f0a09310e6
1 changed files with 6 additions and 3 deletions
|
@ -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 @@ (define (docker-shepherd-service config)
|
|||
#$@(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"))
|
||||
|
|
Loading…
Reference in a new issue