Documentation
¶
Overview ¶
package runner provides a simple interface for running docker containers.
Index ¶
Constants ¶
View Source
const DefaultStopTimeout = 10
DefaultStopTimeout is the number of seconds to wait when stopping a container.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunOpts ¶
type RunOpts struct {
// Image is the image to run.
Image image.Image
// Command is the command to run.
Command string
// Environment variables to set.
Env map[string]string
// Streams fo Stdout, Stderr and Stdin.
Input io.Reader
Output io.Writer
}
RunOpts is used when running.
Click to show internal directories.
Click to hide internal directories.