瀏覽代碼

Update lxc_template.go

If networking is disabled, but then pipework is used later to add nics, the network still doesn't function. Using flags=up for empty networking fixes this.
Docker-DCO-1.1-Signed-off-by: James DeFelice <james.defelice@ishisystems.com> (github: jdef)
James DeFelice 11 年之前
父節點
當前提交
17c124baf6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      execdriver/lxc/lxc_template.go

+ 1 - 0
execdriver/lxc/lxc_template.go

@@ -15,6 +15,7 @@ lxc.network.name = eth0
 {{else}}
 # network is disabled (-n=false)
 lxc.network.type = empty
+lxc.network.flags = up
 {{end}}
 
 # root filesystem