Trying to get my docker set up, I have it running but cant get items, rules, sitemap working.
Moving from stand alone raspberry pi that uses the files for items, rules and sitemap.
Where do I save these files for docker? It did not create a folder.
I created and saved them in the /opt/openhab/conf folder, but still no sitemap.
I also cant edit my echo device, on my previous setup I could assign a string to each item here, and I dont see that in the docker version. Did I install it incorrectly?
Hey 
Checkout this repo I created for a simple docker setup.
It includes influxdb, grafana, node-RED and mosquitto.
Just be sure, when you are on raspberrypi to use the rpi branch.
https://github.com/BrutalBirdie/eze-openHAB-docker/tree/rpi
To your question.
Since you gave no information how you run the openHAB Docker I will just assume your instance uses docker volumes instead of folders.
That’s why you don’t see anything.
Your docker volumes should be here /var/lib/docker/volumes/
where you can find openhab_conf or similar names or docker_id
Did you read the instructions because I think you missed the part of mounting the volumes?
You already created the /opt/openhab/conf
directory but you also need to create /opt/openhab/addons
and /opt/openhab/userdata
directories. Then these three directories are mounted from the host into the container.
docker run \
--name openhab \
--net=host \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v /opt/openhab/addons:/openhab/addons \
-v /opt/openhab/conf:/openhab/conf \
-v /opt/openhab/userdata:/openhab/userdata \
-e "EXTRA_JAVA_OPTS=-Duser.timezone=Europe/Berlin" \
-d \
--restart=always \
openhab/openhab:2.4.0
(replace 2.4.0 with the version you’d like to use)
Thanks that worked, I was using Download openHAB | openHAB.
1 Like