Docker compose bind mount with colon & comma in path not working

Yes, I’ve tried quoting about every way I could think of. Unless I’ve missed the one option it doesn’t seem to work.

Worst case: create a bind on the folder […]

That’s pretty much what I’ve settled on in the meantime, I first create a dedicated volume:

docker volume create \
  --driver local \
  -o o=bind \
  -o type=none \
  -o device="/run/user/1000/gvfs/google-drive:host=my_host.com,user=my.username/" \
  gdrive

Then in the docker compose I bind it as normal:

services:
my_service:
  ...
  volumes:
     - gdrive:/data/gdrive

volumes:
  gdrive:
    external: true

Bit annoying, but at least it’s workable for now…

1 Like