github.com/gravitational/moby@v1.13.1/libcontainerd/types_linux.go (about) 1 package libcontainerd 2 3 import ( 4 containerd "github.com/docker/containerd/api/grpc/types" 5 "github.com/opencontainers/runtime-spec/specs-go" 6 ) 7 8 // Process contains information to start a specific application inside the container. 9 type Process struct { 10 // Terminal creates an interactive terminal for the container. 11 Terminal bool `json:"terminal"` 12 // User specifies user information for the process. 13 User *specs.User `json:"user"` 14 // Args specifies the binary and arguments for the application to execute. 15 Args []string `json:"args"` 16 // Env populates the process environment for the process. 17 Env []string `json:"env,omitempty"` 18 // Cwd is the current working directory for the process and must be 19 // relative to the container's root. 20 Cwd *string `json:"cwd"` 21 // Capabilities are linux capabilities that are kept for the container. 22 Capabilities []string `json:"capabilities,omitempty"` 23 // Rlimits specifies rlimit options to apply to the process. 24 Rlimits []specs.Rlimit `json:"rlimits,omitempty"` 25 // ApparmorProfile specifies the apparmor profile for the container. 26 ApparmorProfile *string `json:"apparmorProfile,omitempty"` 27 // SelinuxLabel specifies the selinux context that the container process is run as. 28 SelinuxLabel *string `json:"selinuxLabel,omitempty"` 29 } 30 31 // StateInfo contains description about the new state container has entered. 32 type StateInfo struct { 33 CommonStateInfo 34 35 // Platform specific StateInfo 36 OOMKilled bool 37 } 38 39 // Stats contains a stats properties from containerd. 40 type Stats containerd.StatsResponse 41 42 // Summary contains a container summary from containerd 43 type Summary struct{} 44 45 // Resources defines updatable container resource values. 46 type Resources containerd.UpdateResource 47 48 // Checkpoints contains the details of a checkpoint 49 type Checkpoints containerd.ListCheckpointResponse