Created
January 27, 2018 13:37
-
-
Save lamlion/b1f6683e7d9112af9a0355a3aa9182ad to your computer and use it in GitHub Desktop.
Domoticz Docker startup script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --name=domoticz --privileged --cidfile="cid" -d -p 8080:8080 -t joshuacox/mkdomoticz:arm | |
mkdir -p domoticz-data | |
docker cp `cat cid`:/config - |sudo tar -C domoticz-data/ -pxf - | |
# kill container and recreate with volume | |
docker run --name=domoticz --privileged --cidfile="cid" -d -p 8080:8080 -v ~/domoticz-data/config:/config -t joshuacox/mkdomoticz:arm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment