Add tty true for compatibility with the openHAB 2.2 (#103)

Add tty true to make sure the example is compatible with version 2.2 of openHAB

Fixes #102

Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
pull/104/head^2
Martin van Wingerden 2017-09-14 16:13:36 +02:00 committed by Christian Häussler
parent e566484125
commit 1a4920cd83
1 changed files with 40 additions and 30 deletions

View File

@ -73,6 +73,7 @@ Following configuration uses Docker named data volumes. These volumes will survi
docker run \ docker run \
--name openhab \ --name openhab \
--net=host \ --net=host \
--tty \
-v /etc/localtime:/etc/localtime:ro \ -v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \ -v /etc/timezone:/etc/timezone:ro \
-v openhab_addons:/openhab/addons \ -v openhab_addons:/openhab/addons \
@ -88,10 +89,14 @@ docker run \
Create the following ``docker-compose.yml`` and start the container with ``docker-compose up -d`` Create the following ``docker-compose.yml`` and start the container with ``docker-compose up -d``
```YAML ```YAML
version: '2.1'
services:
openhab: openhab:
image: "openhab/openhab:2.1.0-amd64" image: "openhab/openhab:2.1.0-amd64"
restart: always restart: always
net: host network_mode: host
tty: true
volumes: volumes:
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro" - "/etc/timezone:/etc/timezone:ro"
@ -108,10 +113,14 @@ openhab:
You can run all openHAB images with libpcap support. This enables you to use the *Amazon Dashbutton Binding* in the Docker container. For that feature to work correctly, you need to run the image as **root user**. Create the following ``docker-compose.yml`` and start the container with ``docker-compose up -d`` You can run all openHAB images with libpcap support. This enables you to use the *Amazon Dashbutton Binding* in the Docker container. For that feature to work correctly, you need to run the image as **root user**. Create the following ``docker-compose.yml`` and start the container with ``docker-compose up -d``
```YAML ```YAML
version: '2.1'
services:
openhab: openhab:
container_name: openhab container_name: openhab
image: "openhab/openhab:2.1.0-amd64" image: "openhab/openhab:2.1.0-amd64"
restart: always restart: always
tty: true
net: host net: host
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
@ -136,6 +145,7 @@ You can mount a local host directory to store your configuration files. If you f
docker run \ docker run \
--name openhab \ --name openhab \
--net=host \ --net=host \
--tty \
-v /etc/localtime:/etc/localtime:ro \ -v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \ -v /etc/timezone:/etc/timezone:ro \
-v /opt/openhab/addons:/openhab/addons \ -v /opt/openhab/addons:/openhab/addons \