Documentation ¶
Index ¶
- func BestEffortDockerClient() (*dockerclient.DockerClient, error)
- func BindingAddr(d *dockerclient.DockerClient, name, binding string) (string, error)
- func Boot2DockerClient() (*dockerclient.DockerClient, error)
- func CreateWithPull(d *dockerclient.DockerClient, c *dockerclient.ContainerConfig, name string) (string, error)
- func DockerWithTLS(url, certPath string) (*dockerclient.DockerClient, error)
- func ImageID(d *dockerclient.DockerClient, imageName string, auth *dockerclient.AuthConfig) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BestEffortDockerClient ¶
func BestEffortDockerClient() (*dockerclient.DockerClient, error)
BestEfforDockerClient creates a docker client from one of:
- Environment variables as defined in https://docs.docker.com/reference/commandline/cli/. Specifically DOCKER_HOST, DOCKER_TLS_VERIFY & DOCKER_CERT_PATH.
2. bootdocker, if darwin.
3. /run/docker.sock, if it exists.
4. /var/run/docker.sock, if it exists.
func BindingAddr ¶
func BindingAddr(d *dockerclient.DockerClient, name, binding string) (string, error)
BindingAddr provides the address for the container and binding.
func Boot2DockerClient ¶
func Boot2DockerClient() (*dockerclient.DockerClient, error)
Boot2Docker returns a DockerClient if possible configured according to boot2docker.
func CreateWithPull ¶
func CreateWithPull( d *dockerclient.DockerClient, c *dockerclient.ContainerConfig, name string, ) (string, error)
CreateWithPull is the same as CreateContainer but will pull the image if it isn't found and retry creating the container.
func DockerWithTLS ¶
func DockerWithTLS(url, certPath string) (*dockerclient.DockerClient, error)
DockerWithTLS returns a DockerClient with the certs in the specified directory. The names of the certs are the standard names of "cert.pem", "key.pem" and "ca.pem".
func ImageID ¶
func ImageID(d *dockerclient.DockerClient, imageName string, auth *dockerclient.AuthConfig) (string, error)
ImageID returns the image ID for the given image name. If the imageName is not known, it will also attempt to pull the image as well.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package dockergoal is a library to reach a set of container goals.
|
Package dockergoal is a library to reach a set of container goals. |