Skip to content

volumes not work on windows #126

Description

@Jacobliu8

when I try to start mysql for a test. I try to export the data to my local disk

[docker:mysql]
image = mysql:8.0
healthcheck_cmd = mysql -uroot -D information_schema -e "SELECT * FROM plugins LIMIT 1;"
healthcheck_interval = 30
healthcheck_timeout = 10
healthcheck_retries = 20
environment =
MYSQL_ALLOW_EMPTY_PASSWORD=true
ports =
10232:3306/tcp
volumes =
bind:rw:{toxinidir}/testdata:/var/lib/mysql

but the validation not pass due to the

 parts = volume_line.split(":")
 if len(parts) != 4:
        raise ValueError(f"Volume {volume_line!r} is malformed")

My pc is window system.
Maybe a bug for windows because window path will like 'D:\githome\xx\' contains : then the parts len should be 5 rather then 4

Activity

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