mirror of https://github.com/docker/docs.git
Merge pull request #17581 from Microsoft/10662-factoroutexecuser
Windows: Factor out user in execdriver\driver
This commit is contained in:
commit
342e6bb99f
|
@ -121,13 +121,6 @@ type ResourceStats struct {
|
||||||
SystemUsage uint64 `json:"system_usage"`
|
SystemUsage uint64 `json:"system_usage"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// User contains the uid and gid representing a Unix user
|
|
||||||
// TODO Windows: Factor out User
|
|
||||||
type User struct {
|
|
||||||
UID int `json:"root_uid"`
|
|
||||||
GID int `json:"root_gid"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// ProcessConfig describes a process that will be run inside a container.
|
// ProcessConfig describes a process that will be run inside a container.
|
||||||
type ProcessConfig struct {
|
type ProcessConfig struct {
|
||||||
exec.Cmd `json:"-"`
|
exec.Cmd `json:"-"`
|
||||||
|
|
|
@ -256,3 +256,9 @@ func Stats(containerDir string, containerMemoryLimit int64, machineMemory int64)
|
||||||
MemoryLimit: memoryLimit,
|
MemoryLimit: memoryLimit,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// User contains the uid and gid representing a Unix user
|
||||||
|
type User struct {
|
||||||
|
UID int `json:"root_uid"`
|
||||||
|
GID int `json:"root_gid"`
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue