diff --git a/installation/docker.md b/installation/docker.md index d16a7fb30..9b003a365 100644 --- a/installation/docker.md +++ b/installation/docker.md @@ -95,10 +95,10 @@ docker run \ -d \ --user= \ --restart=always \ - openhab/openhab:- + openhab/openhab:-- ``` -Where `` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, `` is the version of openHAB and `` is the architecture of your system. +Where `` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, `` is the version of openHAB, `` is the architecture of your system and `` is the base system (debian or alpine). It is important that the ID number is passed in. The ID for the `openhab` user inside the container will not match the ID of the user on your host system and file permissions may be a bit odd (e.g. why does www-data own my openHAB config files?). @@ -138,14 +138,14 @@ ExecStart=/usr/bin/docker run --name=%n --net=host \ -v /opt/openhab/.java:/openhab/.java \ --device=/dev/ttyUSB0 \ --user= \ - openhab/openhab:- + openhab/openhab:-- ExecStop=/usr/bin/docker stop -t 2 %n ; /usr/bin/docker rm -f %n [Install] WantedBy=multi-user.target ``` -Where `` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, `` is the version of openHAB and `` is the architecture of your system. +Where `` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, `` is the version of openHAB, `` is the architecture of your system and `` is the base system (debian or alpine). It is important that the ID number is passed in. The ID for the `openhab` user inside the container will not match the ID of the user on your host system and file permissions may be a bit odd (e.g. why does www-data own my openHAB config files?). @@ -169,8 +169,8 @@ Finally run `sudo systemctl start openhab2.service` to start openHAB running. - `--user=` : sets the user that runs the processes inside the container to match the uid passed, makes sure the `openhab` user can read and write to all needed files - `--device=/dev/ttyUSB0` : location of my zwave controller, change and/or add more --device tags to pass all your devices needed by openHAB to the container - `--restart=always` : if the container crashes or the system reboots the container is restarted -- `openhab/openhab:-` : name of the Docker Image -- `start_debug.sh` : You can start the container with the command ``docker run -it openhab/openhab:- ./start_debug.sh`` to get into the debug shell. You might need to mount additional volumes and parameters as described above. +- `openhab/openhab:--` : name of the Docker Image +- `start_debug.sh` : You can start the container with the command ``docker run -it openhab/openhab:-- ./start_debug.sh`` to get into the debug shell. You might need to mount additional volumes and parameters as described above. ## Environment Variables @@ -208,10 +208,10 @@ rm -rf /opt/openhab/userdata/tmp Pull down the latest image: ```bash -docker pull openhab/openhab:- +docker pull openhab/openhab:-- ``` -where `` is the version of openHAB and `` is your architecture. +where `` is the version of openHAB, `` is your architecture and `` is the base system (debian or alpine). Restart the container using the full command above.