Well hello, Moz://ians
I have problems with Mozi//a gateway running on Docker when I restart my computer. It seems it wipes all gateway’s data each restart of Docker.
This is quite annoying because I have to sign-up, install add-ons, and redo everything each and every time I restart my computer.
Here is how I ran Mozilla gateway over Docker:
docker run -d -p 8080:8080 -p 4443:4443 -e TZ=America/Los_Angeles -v /path/to/shared/data:/home/node/.mozilla-iot --log-opt max-size=1m --log-opt max-file=10 --name webthings-gateway --restart always mozillaiot/gateway:latest
I’ve added --restart always
to get the gateway running when Docker restarts because without this part, the gateway doesn’t start automatically.
I’m not sure whether the problem is related to Docker or my operating system because I ran it on the computer of my brother without any problems.
Thanks in advance
Nas
My OS: Windows 10 x64 2004
Gateway version: 0.12.0