diff --git a/README.md b/README.md index 1dfd136a2..bfbf1b6df 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ user named `daemon` defined within that file-system. "arch": "amd64" }, "process": { - "tty": true, + "terminal": true, "user": "daemon", "args": [ "sh" diff --git a/spec.go b/spec.go index 7cf9de2c7..153950c5e 100644 --- a/spec.go +++ b/spec.go @@ -18,7 +18,7 @@ type Mount struct { } type Process struct { - Terminal bool `json:"tty"` + Terminal bool `json:"terminal"` User string `json:"user"` Args []string `json:"args"` Env []string `json:"env"` @@ -30,11 +30,6 @@ type Root struct { Readonly bool `json:"readonly"` } -type Namespace struct { - Type string `json:"type"` - Path string `json:"path,omitempty"` -} - type Platform struct { OS string `json:"os"` Arch string `json:"arch"` diff --git a/spec_linux.go b/spec_linux.go index 6c0974ae3..6725e9c40 100644 --- a/spec_linux.go +++ b/spec_linux.go @@ -30,6 +30,11 @@ type Linux struct { Devices []string `json:"devices"` } +type Namespace struct { + Type string `json:"type"` + Path string `json:"path"` +} + type UserMapping struct { From int `json:"from"` To int `json:"to"`