Openhab2 docker setup

Hi,

Been trying to setup Openhab in docker for a while. Been reading around these forums and google, but can’t seem to get it working :confused:

I’m running docker on Ubuntu 18.4, and downloaded the latest openhab:snapshot.

This is my logs:

==> /opt/openhab/userdata/logs/openhab.log <==

2019-02-23 14:51:39.468 [WARN ] [.internal.element.HttpContextElement] - Registered http context [null] did not contain a valid http context id

2019-02-23 14:51:40.093 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 172.17.0.1

2019-02-23 14:51:40.094 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 10.0.0.53

2019-02-23 14:51:40.560 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://172.30.32.1:8080

2019-02-23 14:51:40.560 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://172.30.32.1:8443

2019-02-23 14:51:42.190 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007

2019-02-23 14:56:10.962 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

2019-02-23 14:56:10.973 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-ui-homebuilder, openhab-ui-basic, openhab-ui-paper'

==> /opt/openhab/userdata/logs/events.log <==

2019-02-23 14:56:07.537 [thome.event.ExtensionEvent] - Extension 'package-standard' has been installed.

2019-02-23 14:56:10.975 [thome.event.ExtensionEvent] - Extension 'ui-habpanel' has been installed.

The command i used to start the container:

docker run   --name openhab   --net=host   -v /etc/localtime:/etc/localtime:ro   -v /etc/timezone:/etc/timezone:ro   -v /opt/openhab/addons:/openhab/addons   -v /opt/openhab/conf:/openhab/conf   -v /opt/openhab/userdata:/openhab/userdata   -e "EXTRA_JAVA_OPTS=-Duser.timezone=Europe/Berlin"   openhab/openhab:snapshot

Currently the snapshots are broken you’ll need to roll back to 2.4 stable or 2.5M1 until the snapshots are fixed.

1 Like