Skip to content

Commit 1c3ee27

Browse files
cniwebThomas Dietrich
authored and
Thomas Dietrich
committed
[Docker] Update docker image tag (openhab#544)
Signed-off-by: Christian Häussler <[email protected]> (github: @cniweb)
1 parent 07c93a8 commit 1c3ee27

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

installation/docker.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ docker run \
9595
-d \
9696
--user=<uid> \
9797
--restart=always \
98-
openhab/openhab:<version>-<architecture>
98+
openhab/openhab:<version>-<architecture>-<distributions>
9999
```
100100

101-
Where `<uid>` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, `<version>` is the version of openHAB and `<arch>` is the architecture of your system.
101+
Where `<uid>` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, `<version>` is the version of openHAB, `<architecture>` is the architecture of your system and `<distributions>` is the base system (debian or alpine).
102102
It is important that the ID number is passed in.
103103
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?).
104104

@@ -138,14 +138,14 @@ ExecStart=/usr/bin/docker run --name=%n --net=host \
138138
-v /opt/openhab/.java:/openhab/.java \
139139
--device=/dev/ttyUSB0 \
140140
--user=<uid> \
141-
openhab/openhab:<version>-<architecture>
141+
openhab/openhab:<version>-<architecture>-<distributions>
142142
ExecStop=/usr/bin/docker stop -t 2 %n ; /usr/bin/docker rm -f %n
143143

144144
[Install]
145145
WantedBy=multi-user.target
146146
```
147147

148-
Where `<uid>` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, `<version>` is the version of openHAB and `<arch>` is the architecture of your system.
148+
Where `<uid>` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, `<version>` is the version of openHAB, `<architecture>` is the architecture of your system and `<distributions>` is the base system (debian or alpine).
149149
It is important that the ID number is passed in.
150150
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?).
151151

@@ -169,8 +169,8 @@ Finally run `sudo systemctl start openhab2.service` to start openHAB running.
169169
- `--user=<uid>` : 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
170170
- `--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
171171
- `--restart=always` : if the container crashes or the system reboots the container is restarted
172-
- `openhab/openhab:<version>-<architecture>` : name of the Docker Image
173-
- `start_debug.sh` : You can start the container with the command ``docker run -it openhab/openhab:<version>-<architecture> ./start_debug.sh`` to get into the debug shell. You might need to mount additional volumes and parameters as described above.
172+
- `openhab/openhab:<version>-<architecture>-<distributions>` : name of the Docker Image
173+
- `start_debug.sh` : You can start the container with the command ``docker run -it openhab/openhab:<version>-<architecture>-<distributions> ./start_debug.sh`` to get into the debug shell. You might need to mount additional volumes and parameters as described above.
174174

175175
## Environment Variables
176176

@@ -208,10 +208,10 @@ rm -rf /opt/openhab/userdata/tmp
208208
Pull down the latest image:
209209

210210
```bash
211-
docker pull openhab/openhab:<version>-<architecture>
211+
docker pull openhab/openhab:<version>-<architecture>-<distributions>
212212
```
213213

214-
where `<version>` is the version of openHAB and `<arch>` is your architecture.
214+
where `<version>` is the version of openHAB, `<architecture>` is your architecture and `<distributions>` is the base system (debian or alpine).
215215

216216
Restart the container using the full command above.
217217

0 commit comments

Comments
 (0)