Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Added configurable timeouts for connection to docker socket #54

Merged
merged 8 commits into from
Sep 1, 2016

Conversation

rodio
Copy link
Contributor

@rodio rodio commented Aug 26, 2016

No description provided.

manifest, err = config.ReadConfig(file, fd, vars, funcs, print)
if err != nil {
log.Fatal(err)
}

// Check the docker connection before we actually run
if err := dockerclient.Ping(dockerCli, 5000); err != nil {
log.Fatal(err)
if !strings.HasPrefix(dockerCli.Endpoint(), "http://") || !strings.HasPrefix(dockerCli.Endpoint(), "https://") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why dockerCli.Endpoint() shouldn't start with http or https?

@ybogdanov ybogdanov merged commit d2e7209 into dev Sep 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants