create

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PullImage

func PullImage(ctx context.Context, c client.Client, image string, progress io.Writer, force bool) (string, error)

func PullProgress

func PullProgress(ctx context.Context, client client.Client, out io.Writer, image string) error

Types

type Create

type Create struct {
	CapAdd        []string          `usage:"Add Linux capabilities"`
	CapDrop       []string          `usage:"Drop Linux capabilities"`
	CgroupParent  string            `usage:"Optional parent cgroup for the container"`
	CpuPeriod     int               `usage:"Limit CPU CFS (Completely Fair Scheduler) period"`
	CpuQuota      int               `usage:"Limit CPU CFS (Completely Fair Scheduler) quota"`
	C_CpuShares   int               `usage:"CPU shares (relative weight)"`
	CpusetCpus    string            `usage:"CPUs in which to allow execution (0-3, 0,1)"`
	CpusetMems    string            `usage:"MEMs in which to allow execution (0-3, 0,1)"`
	Cpus          string            `usage:"Number of CPUs"`
	OomScoreAdj   int               `usage:"Tune host's OOM preferences (-1000 to 1000)"`
	L_Label       []string          `usage:"Set meta data on a container"`
	LabelFile     []string          `usage:"Read in a line delimited file of labels"`
	Dns           []string          `usage:"Set custom DNS servers"`
	DnsOption     []string          `usage:"Set DNS options"`
	DnsSearch     []string          `usage:"Set custom DNS search domains"`
	E_Env         []string          `usage:"Set environment variables"`
	EnvFile       []string          `usage:"Read in a file of environment variables"`
	Entrypoint    string            `usage:"Overwrite the default ENTRYPOINT of the image"`
	GroupAdd      []string          `usage:"Add additional groups to join"`
	Init          bool              `usage:"Run an init inside the container that forwards signals and reaps processes"`
	Hostname      string            `usage:"Container host name"`
	I_Interactive bool              `usage:"Keep STDIN open even if not attached"`
	Name          string            `usage:"Assign a name to the container"`
	ReadOnly      bool              `usage:"Mount the container's root filesystem as read only"`
	Runtime       string            `usage:"Runtime to use for this container"`
	Sysctl        map[string]string `usage:"Sysctl options (default map[])"`
	T_Tty         bool              `usage:"Allocate a pseudo-TTY"`
	U_User        string            `usage:"Username or UID (format: <name|uid>[:<group|gid>])"`
	W_Workdir     string            `usage:"Working directory inside the container"`
	Pid           string            `usage:"PID namespace to use"`
	Net           string            `usage:"Connect a container to a network"`
	Ipc           string            `usage:"IPC mode to use"`
	Privileged    bool              `usage:"Give extended privileges to this container"`
	M_Memory      string            `usage:"Memory limit"`
	V_Volume      []string          `usage:"Bind mount a volume (format: [/host-src:]/container-dest[:ro])"`
	P_Publish     []string          `usage:"Publish a container's port(s) to the host (format [src:]dst[/tcp|/udp])"`
}

func (*Create) Create

func (c *Create) Create(ctx *cli.Context, client client.Client, stdinOnce bool) (string, error)

func (*Create) Run

func (c *Create) Run(ctx *cli.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL