Esempio n. 1
0
func getTestContainerClient() (container.Client, error) {
	client, err := docker.NewClientFromEnv()
	if err != nil {
		return nil, err
	}
	return container.NewDockerClient(client), nil
}
Esempio n. 2
0
func getContainerClient() (container.Client, error) {
	// TODO: this will just connect to the local instance of docker
	client, err := docker.NewClientFromEnv()
	if err != nil {
		return nil, err
	}
	return container.NewDockerClient(client), nil
}