Skip to content

docker-py should support same URL schemes as Docker #166

Closed

Description

@bfirsh

Fig received docker/compose#88 because it blindly passes DOCKER_HOST to the base_url arg to Client.

Maybe base_url should support things like tcp://, as per https://github.com/dotcloud/docker/blob/2723133a69a292abaa021afff98de127bda57b4e/utils/utils.go#L753-L807 . Alternatively, it could be a separate constructor method.

Activity

  1. shin- commented on Feb 11, 2014

    @shin-
    Contributor

    Already in master: see #140

  2. bfirsh commented on Feb 11, 2014

    @bfirsh
    ContributorAuthor

    Sorry, I should have been clearer. docker-py supports some of the values of DOCKER_HOST. Here are some things it doesn't support, for example:

    • tcp://
    • :4243
    • localhost
    • localhost:4243

    It should all work if the logic from Docker's ParseHost is reproduced.

  3. reopened this on Feb 12, 2014
  4. shin- commented on Feb 24, 2014

    @shin-
    Contributor

    I'll hold out on making changes for now because I believe ParseHost will undergo some changes very soon in the main project, which could invalidate or change the scope of this request. Leaving it open until then.

  5. added this to the milestone on Feb 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions