mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Move namespaces into linux spec
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ user named `daemon` defined within that file-system.
|
||||
"arch": "amd64"
|
||||
},
|
||||
"process": {
|
||||
"tty": true,
|
||||
"terminal": true,
|
||||
"user": "daemon",
|
||||
"args": [
|
||||
"sh"
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user