Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandArgPull = "--dest DESTINATION_DIRECTORY --src S3_ENDPOINT [--user USER] [--grpup GROUP]"
View Source
var CommandArgPush = "--to S3_ENDPOINT DOCKER_REPOSITORY[:TAG]"
View Source
var CommandArgRm = "--root DESTINATION_DIRECTORY"
View Source
var CommandArgRun = "" /* 134-byte string literal not displayed */
View Source
var CommandArgUmount = "--root ROOT_DIR"
View Source
var CommandPull = cli.Command{ Name: "pull", Usage: "Pull an extracted docker image from s3", Action: fatalOnError(doPull), Flags: []cli.Flag{ cli.StringFlag{Name: "dest, d", Usage: "Local filesystem path (ex. /var/containers/app)"}, cli.StringFlag{Name: "src, s", Usage: "Amazon S3 endpoint (ex. s3://drootexample/app.tar.gz)"}, cli.StringFlag{Name: "user, u", Usage: "User (ID or name) to set after extracting archive (required superuser)"}, cli.StringFlag{Name: "group, g", Usage: "Group (ID or name) to set after extracting archive (required superuser)"}, }, }
View Source
var CommandPush = cli.Command{ Name: "push", Usage: "Push an extracted docker image into s3", Action: fatalOnError(doPush), Flags: []cli.Flag{ cli.StringFlag{Name: "to, t", Usage: "Amazon S3 endpoint (ex. s3://drootexample/app.tar.gz)"}, }, }
View Source
var CommandRm = cli.Command{ Name: "rm", Usage: "Remove directory mounted by 'run' command", Action: fatalOnError(doRm), Flags: []cli.Flag{ cli.StringFlag{Name: "root, r", Usage: "Root directory path for chrooted"}, }, }
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 from containersuch as /etc/hosts, /etc/group, /etc/passwd, /etc/hosts", }, cli.BoolFlag{Name: "no-dropcaps", Usage: "Provide COMMAND's process in chroot with root permission (dangerous)"}, }, }
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{ CommandPush, CommandPull, CommandRun, CommandUmount, CommandRm, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.