Versions in this module Expand all Collapse all v0 v0.6.3 Jun 15, 2018 Changes in this version type CreateConfig + Rootfs string v0.6.2 Jun 8, 2018 Changes in this version type CreateConfig + Annotations map[string]string v0.6.1 Jun 1, 2018 v0.5.4 May 25, 2018 Changes in this version + const TypeBind + const TypeTmpfs + func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) + func CreatePortBinding(hostPort int, hostIP string) []nat.PortBinding + func Device(d *configs.Device) spec.LinuxDevice + func ExposedPorts(expose, publish []string, publishAll bool, ...) (map[nat.Port][]nat.PortBinding, error) + type CreateConfig struct + ApparmorProfile string + Args []string + BuiltinImgVolumes map[string]struct{} + CapAdd []string + CapDrop []string + CgroupParent string + CidFile string + Command []string + ConmonPidFile string + DNSOpt []string + DNSSearch []string + DNSServers []string + Detach bool + Devices []string + Entrypoint []string + Env map[string]string + ExposedPorts map[nat.Port]struct{} + GroupAdd []string + HostAdd []string + Hostname string + IDMappings *storage.IDMappingOptions + IP6Address string + IPAddress string + Image string + ImageID string + ImageVolumeType string + Interactive bool + IpcMode container.IpcMode + Labels map[string]string + LinkLocalIP []string + LogDriver string + LogDriverOpt []string + MacAddress string + MountLabel string + Name string + NetMode container.NetworkMode + Network string + NetworkAlias []string + NoNewPrivs bool + PidMode container.PidMode + Pod string + PortBindings nat.PortMap + Privileged bool + ProcessLabel string + Publish []string + PublishAll bool + Quiet bool + ReadOnlyRootfs bool + Resources CreateResourceConfig + Rm bool + Runtime *libpod.Runtime + SeccompProfilePath string + SecurityOpts []string + ShmDir string + StopSignal syscall.Signal + StopTimeout uint + Sysctl map[string]string + Tmpfs []string + Tty bool + User string + UsernsMode container.UsernsMode + UtsMode container.UTSMode + Volumes []string + WorkDir string + func (c *CreateConfig) AddPrivilegedDevices(g *generate.Generator) error + func (c *CreateConfig) CreateBlockIO() (*spec.LinuxBlockIO, error) + func (c *CreateConfig) CreatePortBindings() ([]ocicni.PortMapping, error) + func (c *CreateConfig) GetAnnotations() map[string]string + func (c *CreateConfig) GetContainerCreateOptions() ([]libpod.CtrCreateOption, error) + func (c *CreateConfig) GetTmpfsMounts() []spec.Mount + func (c *CreateConfig) GetVolumeMounts(specMounts []spec.Mount) ([]spec.Mount, error) + type CreateResourceConfig struct + BlkioWeight uint16 + BlkioWeightDevice []string + CPUPeriod uint64 + CPUQuota int64 + CPURtPeriod uint64 + CPURtRuntime int64 + CPUShares uint64 + CPUs float64 + CPUsetCPUs string + CPUsetMems string + DeviceReadBps []string + DeviceReadIOps []string + DeviceWriteBps []string + DeviceWriteIOps []string + DisableOomKiller bool + KernelMemory int64 + Memory int64 + MemoryReservation int64 + MemorySwap int64 + MemorySwappiness int + OomScoreAdj int + PidsLimit int64 + ShmSize int64 + Ulimit []string