RoggerFabri / mopidy-icesnap

MIT License
22 stars 3 forks source link

Volumes error #35

Open delightfuldude opened 1 year ago

delightfuldude commented 1 year ago

Hi and thank you for your work! You've done a great job! I just want to let you know, that I've got an error message when I tried to run the docker-compose file:

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 "/root/snapserver/snapserver.conf" to rootfs at "/etc/snapserver.conf": mount /root/snapserver/snapserver.conf:/etc/snapserver.conf (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

There is something wrong with the volume definition:

      - ~/snapserver/:/root/.config/snapserver/
      - ~/snapserver/snapserver.conf:/etc/snapserver.conf`

and

      - ~/mopidy-icesnap/mopidy/mopidy-snapserver.conf:/mopidy/mopidy.conf
      - ~/mopidy-snapserver/:/mopidy

This is my solution, I had to hardcode the volumes, to make the docker-compose actually work:

      - /opt/containers/mopidy-icesnap/snapserver/:/root/.config/snapserver/
      - /opt/containers/mopidy-icesnap/snapserver/snapserver.conf:/etc/snapserver.conf

and

      - /opt/containers/mopidy-icesnap/mopidy/mopidy-snapserver.conf:/mopidy/mopidy.conf
      - /opt/containers/mopidy-icesnap/mopidy-snapserver/:/mopidy/

Don't know if it's my docker setup, or a general issue?