Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.2.0
type Config struct {
Host string
}
Config represents the docker configuration.
type CreateContainerOptions ¶
type CreateContainerOptions struct { Env []string ExposedPorts []string IP string Image string Labels map[string]string Links []string Name string Recreate bool Ports []string Volumes []string }
CreateContainerOptions is the options for creating a container.
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
Docker represents a docker client.
func (*Docker) CreateContainer ¶
func (d *Docker) CreateContainer(opts *CreateContainerOptions) error
CreateContainer will create a container with the given options.
func (*Docker) FindContainers ¶
FindContainers list containers based on filters.
func (*Docker) RemoveContainer ¶
RemoveContainer removes a container by name.
Click to show internal directories.
Click to hide internal directories.