Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

Cleanup URL parsing and support remote Docker API endpoints #4

Merged
merged 1 commit into from
Aug 15, 2014

Conversation

johnewart
Copy link
Contributor

No description provided.

Chef::Log.debug("Setting Docker URL to #{url}")
Docker.url = url
end

Copy link
Contributor

Choose a reason for hiding this comment

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

If this is expected in general, should we support it? If the user specifies driver "docker:" or "docker", can we just grab this environment variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I only do this if the user specifies one, otherwise the Docker API does the following:

@url ||= ENV['DOCKER_URL'] || ENV['DOCKER_HOST'] || default_socket_url

Plus it leads to somewhat ambiguous behavior / output during the driver registration phase when we parse the driver name without a URL component

Copy link
Contributor

Choose a reason for hiding this comment

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

Ambiguous driver URLs are acceptable (having multiple drivers map to the same actual thing)--what logs is it doing?

@johnewart johnewart merged commit 7607d9d into master Aug 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants