Documentation ¶
Index ¶
- Constants
- func AutocompleteRun(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func ConnectNetworksToDaemon(ctx context.Context, networks []string, daemonName string) (context.CancelFunc, error)
- func EnsureStopContainer(ctx context.Context, containerID string, volumes []string, ...)
- func ReadContainerID(ctx context.Context, cidFile string) (containerID string, err error)
- type Flags
- type PublishedPort
- type PublishedPorts
- type RunFlags
- type Runner
Constants ¶
View Source
const Exe = "docker"
Variables ¶
This section is empty.
Functions ¶
func AutocompleteRun ¶
func ConnectNetworksToDaemon ¶
func EnsureStopContainer ¶
Types ¶
type Flags ¶
type Flags struct { Run bool // --docker-run Debug bool // set if --docker-debug was used BuildOptions []string // --docker-build-opt key=value, // Optional flag to docker build can be repeated (but not comma separated) PublishedPorts PublishedPorts // --publish Port mappings that the container will expose on localhost Context string // Set to build or debug by Validate function Image string Mount string // --docker-mount // where to mount in a docker container. Defaults to mount unless mount is "true" or "false". // contains filtered or unexported fields }
func (*Flags) GetContainerNameAndArgs ¶
func (*Flags) PullOrBuildImage ¶
PullOrBuildImage will pull or build the image and return the args list suitable when starting it.
type PublishedPort ¶
func (PublishedPort) String ¶
func (c PublishedPort) String() string
type PublishedPorts ¶
type PublishedPorts []PublishedPort
func (*PublishedPorts) Append ¶
func (p *PublishedPorts) Append(s string) error
func (*PublishedPorts) GetSlice ¶
func (p *PublishedPorts) GetSlice() []string
func (*PublishedPorts) Replace ¶
func (p *PublishedPorts) Replace(vals []string) error
func (*PublishedPorts) Set ¶
func (p *PublishedPorts) Set(s string) error
func (*PublishedPorts) String ¶
func (p *PublishedPorts) String() string
func (*PublishedPorts) Type ¶
func (p *PublishedPorts) Type() string
type RunFlags ¶
type RunFlags struct { PublishedPorts PublishedPorts // --publish Port mappings that the container will expose on localhost Networks []string }
Click to show internal directories.
Click to hide internal directories.