Documentation ¶
Index ¶
- Variables
- func Run(client dockerclient.Client, conf *dockerclient.ContainerConfig, name string) (*dockerclient.ContainerInfo, error)
- func RunDaemon(client dockerclient.Client, conf *dockerclient.ContainerConfig, name string) (*dockerclient.ContainerInfo, error)
- func Wait(client dockerclient.Client, name string) (*dockerclient.ContainerInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogOpts = &dockerclient.LogOptions{ Stdout: true, Stderr: true, } LogOptsTail = &dockerclient.LogOptions{ Follow: true, Stdout: true, Stderr: true, } )
Functions ¶
func Run ¶
func Run(client dockerclient.Client, conf *dockerclient.ContainerConfig, name string) (*dockerclient.ContainerInfo, error)
Run creates the docker container, pulling images if necessary, starts the container and blocks until the container exits, returning the exit information.
func RunDaemon ¶
func RunDaemon(client dockerclient.Client, conf *dockerclient.ContainerConfig, name string) (*dockerclient.ContainerInfo, error)
RunDaemon creates the docker container, pulling images if necessary, starts the container and returns the container information. It does not wait for the container to exit.
func Wait ¶
func Wait(client dockerclient.Client, name string) (*dockerclient.ContainerInfo, error)
Wait blocks until the named container exits, returning the exit information.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.