Force the none driver to use netgo.

pull/2071/head
dlorenc 2017-10-10 05:57:22 -07:00
parent 6bb07b32c4
commit c0d838fc71
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@ var localkubeStartCmdTemplate = "/usr/local/bin/localkube {{.Flags}} --generate-
var startCommandNoSystemdTemplate = `
# Run with nohup so it stays up. Redirect logs to useful places.
sudo sh -c 'PATH=/usr/local/sbin:$PATH nohup {{.LocalkubeStartCmd}} > {{.Stdout}} 2> {{.Stderr}} < /dev/null & echo $! > {{.Pidfile}} &'
sudo sh -c 'PATH=/usr/local/sbin:$PATH nohup GODEBUG=netdns=go {{.LocalkubeStartCmd}} > {{.Stdout}} 2> {{.Stderr}} < /dev/null & echo $! > {{.Pidfile}} &'
`
var localkubeSystemdTmpl = `[Unit]
@ -46,6 +46,8 @@ Type=notify
Restart=always
RestartSec=3
Environment=GODEBUG=netdns=go
ExecStart={{.LocalkubeStartCmd}}
ExecReload=/bin/kill -s HUP $MAINPID