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