Open nielsgroen opened 4 years ago
I'm encountering the same issue :-/
I was able to workaround the bug by using volumes instead of mounts
container = docker_client.containers.run(
image="blazemeter/taurus",
command=full_command,
volumes={
os.path.realpath(os.getcwd()): {"bind": "/bzt-configs", "mode": "rw"},
os.path.realpath(TemporaryDirectory().name): {"bind": "/tmp/artifacts", "mode": "rw"},
},
)
That worked for me when the host machine is Windows or Linux. I'm hoping the underlying bug gets fixed, but I think this may help in the meantime.
I can't seem to mount paths originating from a Windows directory using the docker-py. Mounting paths using docker-compose.yml
I always seem to get an error:
or
or
same for
//c/
using a docker-compose.yml file, everything works no problemo.
I'd not be surprised if there is a mistake somewhere, but I can't seem to figure it out. Any help is much appreciated!