vanackej / risco-mqtt-local

Provide Risco alarm system integration to Home assistant using local TCP communication (no cloud required) and MQTT
MIT License
24 stars 11 forks source link

Bind mount failed #13

Closed mrbarbz closed 2 years ago

mrbarbz commented 2 years ago

I'm running Docker on Synology 918+ and when I put the below docker run command via SSH using putty

docker run -v $(pwd)/config.json:/volume1/docker/riscolocal/config/config.json vanackej/risco-mqtt-local

I get this error

docker: Error response from daemon: Bind mount failed: '/root/config.json' does not exists. ERRO[0003] error waiting for container: context canceled

What am I doing wrong? I have created the config.json and placed it config folder

vanackej commented 2 years ago

Your volume mounting is inverted First part is the path in the host, second part is the path in the container. Just open your terminal in /volume1/docker/riscolocal/config and use docker run command as documented in README.

mrbarbz commented 2 years ago

That Worked, Thanks. Sorry, I'm not up to scratch with Docker/SHH etc..

I now get the following connection error

Panel is not working, waiting Socket Timeout. TCP Socket Disconnected

I have put in the correct IP adress