[Solved] Help needed with Docker setup

Hi all,

I recently studied up on Docker and I’m now trying to use it to host OpenHAB.

I’m trying to run OpenHAB on a windows machine with intel cpu with the following command:

docker run -it --name openhab --net=host openhab/openhab:2.1.0-amd64-alpine

which works but I’m not able to browse it on localhost:8080 or 8443. Docker is running on my PC using Linux container so I’m not entirely sure here what’s going wrong. I believe I do got the right image?

Going from there I created the following docker-compose file:

version: '3'

    #image for Windows host on intel cpu
    image: "openhab/openhab:2.1.0-amd64-alpine"
    # restart: always
    # network_mode: host
    tty: true
    # net: "host"
      - "./OpenHAB2/etc/localtime:/etc/localtime:ro"
      - "./OpenHAB2/etc/timezone:/etc/timezone:ro"
      - "./OpenHAB2/openhab_addons:/openhab/addons"
      - "./OpenHAB2/openhab_conf:/openhab/conf"
      - "./OpenHAB2/openhab_userdata:/openhab/userdata"
      OPENHAB_HTTP_PORT: "8080"
      OPENHAB_HTTPS_PORT: "8443"
      - "8080:8080"
      - "8433:8433"

again, this runs (the config folders get populated) but I’m not able to browse localhost:8080.
Note: if i use version 2.1 in the docker-compose file I get an error.

Would anyone have some input?
much appreciated!

Update: Using Docker-Compose up I found that an error was logged. By turning experimental features of as described here my issue is resolve.