Move namespaces into linux spec
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
4c829ea2ad
commit
c4fd381a38
|
@ -48,7 +48,7 @@ user named `daemon` defined within that file-system.
|
|||
"arch": "amd64"
|
||||
},
|
||||
"process": {
|
||||
"tty": true,
|
||||
"terminal": true,
|
||||
"user": "daemon",
|
||||
"args": [
|
||||
"sh"
|
||||
|
|
7
spec.go
7
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"`
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue