Documentation ¶
Index ¶
- func ContainerCmder(containerNameOrID string) exec.Cmder
- func CopyFrom(containerNameOrID, srcPath, hostPath string) error
- func CopyTo(hostPath, containerNameOrID, destPath string) error
- func PullIfNotPresent(image string, retries int) (bool, error)
- func Run(image string, opts ...RunOpt) error
- type RunOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerCmder ¶
ContainerCmder creates a new exec.Cmder against a docker container
func PullIfNotPresent ¶
PullIfNotPresent will pull an image if it is not present locally retrying up to retries times it returns true if it attempted to pull, and any errors from pulling
Types ¶
type RunOpt ¶
type RunOpt func(*runOpts) *runOpts
RunOpt is an option for Run
func WithContainerArgs ¶
WithContainerArgs sets the args to the container as in the containerArgs portion of `docker run args... image containerArgs...` NOTE: this is only the args portion before the image
func WithRunArgs ¶
WithRunArgs sets the args for docker run as in the args portion of `docker run args... image containerArgs...`
Click to show internal directories.
Click to hide internal directories.