Force the none driver to use netgo.
parent
6bb07b32c4
commit
c0d838fc71
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue