Skip to content

Containers.create() cannot handle binds with Windows paths containing a ':' #1884

@makroeze

Description

@makroeze

Issue

Containers.create() is unable to handle binds with Windows paths containing a ':' due to the string splitting logic in _host_volume_from_bind(bind). Given a bind of the form 'foo:c:/foo:rw', the path is identified as 'c' rather than 'c:/foo'.

Environment

Windows 10 Desktop 1709
docker==2.6.0
docker-pycreds==0.2.1
Python 2.7.14
Client:
Version: 17.06.0-dev
API version: 1.34
Go version: go1.8.5
Git commit: e2ada66
Built: Thu Nov 2 23:37:13 2017
OS/Arch: windows/amd64
Server:
Version: 17.06.0-dev
API version: 1.34 (minimum version 1.24)
Go version: go1.8.5
Git commit: 462d791
Built: Thu Nov 2 23:41:07 2017
OS/Arch: windows/amd64
Experimental: false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions