FAIRDataTeam / FAIRDataPoint

https://www.fairdatapoint.org
MIT License
59 stars 36 forks source link

Docker compose fails on windows due to "/" and "\" differences in paths #514

Open KarolisCremers opened 4 months ago

KarolisCremers commented 4 months ago

What components are related to the issue?

Other (specify in text)

Which FDP are you using?

My local instance

Version

15, 16 and 17 have been tried.

What happened?

When running the docker-compose documented in the docs the compose fails due to some FDP system not using system independent pathing.

Is this a docker issue or a FDP issue? Thanks in advance!

Relevant log output

Attaching to blazegraph-1, fdp-1, fdp-client-1, mongo-1
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/desktop/mnt/host/c/Users/.../Desktop/Local FDP/application.yml" to rootfs at "/fdp/application.yml": mount /run/desktop/mnt/host/c/Users/.../Desktop/Local FDP/application.yml:/fdp/application.yml (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
kburger commented 4 months ago

Hi @KarolisCremers. Without any experience running this on windows, this seems to be a higher level issue. For reference, can you post the docker-compose.yml file you are using?

And can you try things like settings some flags as described in https://github.com/docker/compose/issues/4240 and report back?