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
parent
e566484125
commit
1a4920cd83
16
README.md
16
README.md
|
@ -73,6 +73,7 @@ Following configuration uses Docker named data volumes. These volumes will survi
|
|||
docker run \
|
||||
--name openhab \
|
||||
--net=host \
|
||||
--tty \
|
||||
-v /etc/localtime:/etc/localtime:ro \
|
||||
-v /etc/timezone:/etc/timezone:ro \
|
||||
-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``
|
||||
|
||||
```YAML
|
||||
openhab:
|
||||
version: '2.1'
|
||||
|
||||
services:
|
||||
openhab:
|
||||
image: "openhab/openhab:2.1.0-amd64"
|
||||
restart: always
|
||||
net: host
|
||||
network_mode: host
|
||||
tty: true
|
||||
volumes:
|
||||
- "/etc/localtime:/etc/localtime: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``
|
||||
|
||||
```YAML
|
||||
openhab:
|
||||
version: '2.1'
|
||||
|
||||
services:
|
||||
openhab:
|
||||
container_name: openhab
|
||||
image: "openhab/openhab:2.1.0-amd64"
|
||||
restart: always
|
||||
tty: true
|
||||
net: host
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
|
@ -136,6 +145,7 @@ You can mount a local host directory to store your configuration files. If you f
|
|||
docker run \
|
||||
--name openhab \
|
||||
--net=host \
|
||||
--tty \
|
||||
-v /etc/localtime:/etc/localtime:ro \
|
||||
-v /etc/timezone:/etc/timezone:ro \
|
||||
-v /opt/openhab/addons:/openhab/addons \
|
||||
|
|
Loading…
Reference in New Issue