Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunContainer ¶
func RunContainer(runOptions RunOptions, writer io.Writer) error
RunContainer builds docker image and runs a container.
Types ¶
type RunOptions ¶
type RunOptions struct {
// BuildContext docker image build context directory.
BuildCtxDir string
// ImageTag - docker image tag.
ImageTag string
// Command is a command to run in container.
Command []string
// Binds - directory bindings in "host_dir:container_dir" format.
Binds []string
// Verbose, if set, verbose output is enabled.
Verbose bool
}
RunOptions options for docker container run.
Click to show internal directories.
Click to hide internal directories.