Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandArgExport = "-o OUTPUT DOCKER_REPOSITORY[:TAG]"
View Source
var CommandArgRun = "" /* 134-byte string literal not displayed */
View Source
var CommandArgUmount = "--root ROOT_DIR"
View Source
var CommandExport = cli.Command{ Name: "export", Usage: "Export a container's filesystem as a tar archive", Action: fatalOnError(doExport), Flags: []cli.Flag{ cli.StringFlag{Name: "o, output", Usage: "Write to a file, instead of STDOUT"}, }, }
View Source
var CommandRun = cli.Command{ Name: "run", Usage: "Run an extracted docker image from s3", Action: fatalOnError(doRun), Flags: []cli.Flag{ cli.StringFlag{Name: "root, r", Usage: "Root directory path for chrooting"}, cli.StringFlag{Name: "user, u", Usage: "User (ID or name) to switch before running the program"}, cli.StringFlag{Name: "group, g", Usage: "Group (ID or name) to switch to"}, cli.StringSliceFlag{ Name: "bind, b", Value: &cli.StringSlice{}, Usage: "Bind mount directory (can be specifies multiple times)", }, cli.StringSliceFlag{ Name: "robind", Value: &cli.StringSlice{}, Usage: "Readonly bind mount directory (can be specifies multiple times)", }, cli.BoolFlag{ Name: "copy-files, cp", Usage: "Copy host files to container such as /etc/group, /etc/passwd, /etc/resolv.conf, /etc/hosts", }, cli.BoolFlag{Name: "no-dropcaps", Usage: "Provide COMMAND's process in chroot with root permission (dangerous)"}, cli.StringSliceFlag{ Name: "env, e", Value: &cli.StringSlice{}, Usage: "Set environment variables", }, }, }
View Source
var CommandUmount = cli.Command{ Name: "umount", Usage: "Umount directory mounted by 'run' command", Action: fatalOnError(doUmount), Flags: []cli.Flag{ cli.StringFlag{Name: "root, r", Usage: "Root directory path for chrooted"}, }, }
View Source
var Commands = []cli.Command{ CommandExport, CommandRun, CommandUmount, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.