JonnyPtn / zomboi

A discord bot for project zomboid multiplayer servers
49 stars 32 forks source link

Mount Error on Container Run #55

Closed xBeEatNUx closed 1 year ago

xBeEatNUx commented 1 year ago

After building the image and trying to run the container, I am getting an error that complains about the invalid mount config...check below...

docker run -d -v zomboid-maps:~/steam/steamapps/common/ProjectZomboid/media/maps -v zomboid-logs:~/Zomboid/Logs -e DISCORD_TOKEN=XXX -e CHANNEL=XXX -e RCON_PASSWORD=XXX zomboi

docker: Error response from daemon: invalid volume specification: 'zomboid-maps:~/steam/steamapps/common/ProjectZomboid/media/maps': invalid mount config for type "volume": invalid mount path: '~/steam/steamapps/common/ProjectZomboid/media/maps' mount path must be absolute.

JonnyPtn commented 1 year ago

Not something I've seen before and I don't personally use the docker container, but based on the error about absolute paths I would guess it's because you're using ~ for the home folder? so perhaps try using absolute paths instead?

xBeEatNUx commented 1 year ago

yeah I figured this out last night, you have to use absolute paths. Thanks for the reply. Docker directions needs abit more flushing out but I got it to work and its solid, now I just need to see if I can change how its displayed in discord