From 5d39844afd17271571ae8364890ef950da58ba31 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sun, 17 May 2020 12:03:40 +0200 Subject: [PATCH] Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born --- installation/docker.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/installation/docker.md b/installation/docker.md index 1b918c8bac..3e43fb603f 100644 --- a/installation/docker.md +++ b/installation/docker.md @@ -97,7 +97,7 @@ docker run \ -e USER_ID= \ -e GROUP_ID= \ --restart=always \ - openhab/openhab:-- + openhab/openhab:- ``` Where @@ -105,7 +105,6 @@ Where - `` is the user ID number for the `openhab` user which you can obtain using the command `id openhab`, - `` is the group ID number for the `openhab` user, - `` 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. @@ -149,14 +148,14 @@ ExecStart=/usr/bin/docker run --name=%n --net=host \ --device=/dev/ttyUSB0 \ -e USER_ID= \ -e GROUP_ID= \ - 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, `` is the architecture of your system and `` is the base system (debian or alpine). +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 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?). @@ -180,8 +179,8 @@ Note, always review the README on [Docker Hub](https://hub.docker.com/r/openhab/ - `-v /opt/openhab/.java:/openhab/.java` : needed by the Nest 1.x binding (and others?), location of the security token - `--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 @@ -212,10 +211,10 @@ Delete the container: Pull down the latest image: ```bash -docker pull openhab/openhab:-- +docker pull openhab/openhab:- ``` -where `` is the version of openHAB, `` is your architecture and `` is the base system (debian or alpine). +where `` is the version of openHAB and `` is the base system (debian or alpine). Restart the container using the full command above.