Skip to content

Instantly share code, notes, and snippets.

@lamlion
Created January 27, 2018 13:37
Show Gist options
  • Save lamlion/b1f6683e7d9112af9a0355a3aa9182ad to your computer and use it in GitHub Desktop.
Save lamlion/b1f6683e7d9112af9a0355a3aa9182ad to your computer and use it in GitHub Desktop.
Domoticz Docker startup script
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