Compile nsinit into docker for use with dockerinit

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby
2014-02-24 12:21:13 -08:00
parent 89dbdb1f71
commit 8f20058307
4 changed files with 35 additions and 6 deletions
+4
View File
@@ -53,6 +53,8 @@ func SysInit() {
privileged = flag.Bool("privileged", false, "privileged mode")
mtu = flag.Int("mtu", 1500, "interface mtu")
driver = flag.String("driver", "", "exec driver")
pipe = flag.Int("pipe", 0, "sync pipe fd")
console = flag.String("console", "", "console (pty slave) path")
)
flag.Parse()
@@ -79,6 +81,8 @@ func SysInit() {
Args: flag.Args(),
Mtu: *mtu,
Driver: *driver,
Console: *console,
Pipe: *pipe,
}
if err := executeProgram(args); err != nil {