Merge pull request #42 from tonistiigi/docker-endpoint

commands: fix using ssh endpoint directly
pull/44/head
Tibor Vass 6 years ago committed by GitHub
commit 0f1568746f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -217,7 +217,19 @@ func clientForEndpoint(dockerCli command.Cli, name string) (dockerclient.APIClie
return dockerclient.NewClientWithOpts(clientOpts...)
}
}
return dockerclient.NewClientWithOpts(dockerclient.WithHost(name))
ep := docker.Endpoint{
EndpointMeta: docker.EndpointMeta{
Host: name,
},
}
clientOpts, err := ep.ClientOpts()
if err != nil {
return nil, err
}
return dockerclient.NewClientWithOpts(clientOpts...)
}
// getDefaultDrivers returns drivers based on current cli config

Loading…
Cancel
Save