Use nsinit as app

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-02-19 14:33:25 -08:00
parent d62cc1cc66
commit c1f8606d50
7 changed files with 82 additions and 119 deletions

View file

@ -2,18 +2,14 @@ package libcontainer
type Container struct {
ID string `json:"id,omitempty"`
NsPid int `json:"namespace_pid,omitempty"`
Command *Command `json:"command,omitempty"`
RootFs string `json:"rootfs,omitempty"`
ReadonlyFs bool `json:"readonly_fs,omitempty"`
NetNsFd uintptr `json:"network_namespace_fd,omitempty"`
User string `json:"user,omitempty"`
WorkingDir string `json:"working_dir,omitempty"`
Namespaces Namespaces `json:"namespaces,omitempty"`
Capabilities Capabilities `json:"capabilities,omitempty"`
Master uintptr `json:"master"`
Console string `json:"console"`
LogFile string `json:"log_file"`
LogFile string `json:"log_file,omitempty"`
Network *Network `json:"network,omitempty"`
}
type Command struct {
@ -22,9 +18,9 @@ type Command struct {
}
type Network struct {
TempVethName string `json:"temp_veth,omitempty"`
IP string `json:"ip,omitempty"`
Gateway string `json:"gateway,omitempty"`
Bridge string `json:"bridge,omitempty"`
Mtu int `json:"mtu,omitempty"`
TempVethName string `json:"temp_veth,omitempty"`
}