First try to run Openhab in a docker on Ubuntu

This is shown

2024-02-04 14:45:01.199 [INFO ] [org.openhab.core.Activator          ] - Starting openHAB 4.1.1 (build Release Build)
2024-02-04 14:45:14.539 [WARN ] [org.openhab.core.net.NetUtil        ] - Found multiple local interfaces - ignoring 172.18.0.1
2024-02-04 14:45:14.542 [WARN ] [org.openhab.core.net.NetUtil        ] - Found multiple local interfaces - ignoring 192.168.65.6
2024-02-04 14:45:14.544 [WARN ] [org.openhab.core.net.NetUtil        ] - Found multiple local interfaces - ignoring 192.168.65.9
2024-02-04 14:45:15.792 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2024-02-04 14:45:26.090 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.

Ignoring is not a good thing :wink:. Did you copy the configuration from an other machine? If so the server might be configured to bind to a defined IP. Search the userdatadirectory if the config file contains the IP of the previous machine (the container should be stopped while you do this). Then replace the IP with 0.0.0.0 (you can configure to what interface to bind later again in the UI.

Start the container again and do the netstat thingy again …

It is a 100% clean installation. All directories were empty

Interesting :thinking: … It is strange that it finds more than one IP address for your machine (192.168.65.6 & 192.168.65.9). I wonder why that’s the case …

You can try to bind OH with the environment var as shown above - but I do not know to which address … do you have wired & wlan connection active? If so I recommend to disable wifi on the host and use the wired connect.

If that does not help we need to dig some more …

What do you get when you type ip a on the host (note: do not post the MAC’s here, only the rest of the info).

Also the this output might be interesting:

docker network ls
NETWORK ID     NAME           DRIVER    SCOPE
15c0b2c93f5e   bridge         bridge    local
42168d95b3b2   host           host      local
5a135460cb37   laptop_zwave   bridge    local
3ff621a56cdf   none           null      local

as well as

docker network inspect host
[
    {
        "Name": "host",
        "Id": "42168d95b3b23785c6b70fca8f61eb99d5758fbadca25a0c52d1c1c405025451",
        "Created": "2023-06-03T22:14:04.186695299+02:00",
        "Scope": "local",
        "Driver": "host",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": null
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {},
        "Options": {},
        "Labels": {}
    }
]

Edit:

Digged a big arround - and not sure if OPENHAB_HTTP_ADDRESSwill have an effect; but the following config file might be of interest userdate/org/openhab/network.config:

How are you trying to connect to port 8080? Are you connecting from the local docker host, or from a remote host?

Install netcat if necessary:
sudo apt-get install netcat

On the Ubuntu docker host, I’d try
nc -zv localhost 8080

On a remote host I’d try the same command:
Linux:
nc -zv localhost 8080

Windows Powershell:
Test-NetConnection -ComputerName IPADDR_HERE -Port 8080
i.e.
Test-NetConnection -ComputerName 192.168.250.128 -Port 8080

Check the Ubuntu firewall:
sudo ufw status

Create a rule if necessary:
sudo ufw allow 8080/tcp

What output are you getting from docker ps (or docker ps -a)?

OpenHAB tends to use a lot of different ports, and some bindings use additional ports, and so I just allocated a separate local IP to OpenHAB. I’m happy to listen to the purists rant about this being an anti-pattern for containers.

Here is the approach that I use:
docker network create lan -d ipvlan
–subnet=192.168.250.0/24
–gateway=192.168.250.1
-o ipvlan_mode=l2

Where my home subnet is 192.168.250.x/24

I run the container with a static IP:
docker run
–name openhab
–net=lan
–ip=192.168.250.128
-v /etc/localtime:/etc/localtime:ro
-v /etc/timezone:/etc/timezone:ro
-v /container-data/openhab/addons:/openhab/addons
-v /container-data/openhab/conf:/openhab/conf
-v /container-data/openhab/userdata:/openhab/userdata
-e “CRYPTO_POLICY=unlimited”
-e “EXTRA_JAVA_OPTS=-Duser.timezone=America/New_York”
-d
–restart=always
openhab/openhab:latest

So there are some troubleshooting steps and some food for thought steps.

Networking with docker can definitely be a little tricky!

Not sure if you‘ve seen this one, but on my end it worked exactly like this some weeks ago (I killed my system and luckily could follow my own step-by-step).

I run oh on a dedicated nuc sized pc (ASUS) running Ubuntu. I surmise that your nuc is dedicated to OH? I’ve had zero issues running OH installed with apt. Are you planning to run additional server apps? I don’t see the value of docker in a dedicated box

yes

mynuc@mynuc-desktop:~$ nc -zv localhost 8080
nc: connect to localhost (127.0.0.1) port 8080 (tcp) failed: Connection refused

udo apt-get install netcat-openbsd
was already installed

Status: inactive

Not needed

Can this be the problem?

There is no IP address connected to port 8080

netstat -vatn
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN  

Looks like it is a docker issue.
with docker container inspect
I don´t see a ip address

NetworkSettings": {
            "Bridge": "",
            "SandboxID": "47a16baccc8267ff2432a75852020368e9eab5f177e84eccc62d9fa9611df82b",
            "SandboxKey": "/var/run/docker/netns/default",
            "Ports": {},
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",

That’s normal for a container running in host mode networking. My OH in Docker works and has identical values (except for the ID and key of course).

So I took the original docker-compose.yaml at the top of the thread:

version: '2.2'

services:
  openhab:
    image: "openhab/openhab:4.1.1"
    restart: always
    network_mode: host
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/timezone:/etc/timezone:ro"
      - "/home/mynuc/docker/openhab4.1.1/addons:/openhab/addons"
      - "/home/mynuc/docker/openhab4.1.1/conf:/openhab/conf"
      - "/home/mynuc/docker/openhab4.1.1/userdata:/openhab/userdata"
    environment:
      CRYPTO_POLICY: "unlimited"
      EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Amsterdam"
      OPENHAB_HTTP_PORT: "8080"
      OPENHAB_HTTPS_PORT: "8443"

volumes:
  openhab_addons:
    driver: local
  openhab_conf:
    driver: local
  openhab_userdata:
    driver: local

created the directories:

mkdir -p /home/mynuc/docker/openhab4.1.1/addons
mkdir -p /home/mynuc/docker/openhab4.1.1/conf
mkdir -p /home/mynuc/docker/openhab4.1.1/userdata
sudo chown -R $USER:$USER /home/mynuc/docker/openhab4.1.1

Started up the container:

docker compose up
docker-host:/home/mynuc$ docker ps
CONTAINER ID   IMAGE                           COMMAND                  CREATED         STATUS                            PORTS                                                                                            NAMES
221cd7425ab4   openhab/openhab:4.1.1           "/entrypoint gosu op…"   3 minutes ago   Up 2 minutes (health: starting)                                                                                                    mynuc-openhab-1

My implementation just kind of hung like you are describing…

I’d recommend the following:

sudo useradd -r -s /sbin/nologin openhab
sudo usermod -a -G openhab openhab

Per the documentation here:

Determine the USER_ID and GROUP_ID:

docker-host:/home/mynuc$ grep openhab /etc/passwd
openhab:x:9001:9001:openhab runtime user,,,:/var/lib/openhab:/bin/false

^^^^^ This is your USER_ID

docker-host:/home/mynuc$ grep openhab /etc/group
openhab:x:9001:

^^^^^ This is your GROUP_ID

At a minimum edit your docker-compose.yaml like this:

version: '2.2'

services:
  openhab:
    image: "openhab/openhab:4.1.1"
    restart: always
    network_mode: host
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/timezone:/etc/timezone:ro"
      - "/home/mynuc/docker/openhab4.1.1/addons:/openhab/addons"
      - "/home/mynuc/docker/openhab4.1.1/conf:/openhab/conf"
      - "/home/mynuc/docker/openhab4.1.1/userdata:/openhab/userdata"
    environment:
      CRYPTO_POLICY: "unlimited"
      EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Amsterdam"
      OPENHAB_HTTP_PORT: "8080"
      OPENHAB_HTTPS_PORT: "8443"
      USER_ID: "9001"
      GROUP_ID: "9001"
volumes:
  openhab_addons:
    driver: local
  openhab_conf:
    driver: local
  openhab_userdata:
    driver: local

Note the new lines USER_ID and GROUP_ID

docker compose up

The output of docker compose up should look like this:

docker-host:/home/mynuc$ docker compose up
[+] Running 1/0
 ✔ Container mynuc-openhab-1  Created                                                                                                                               0.0s
Attaching to openhab-1
openhab-1  | + IFS='
openhab-1  |    '
openhab-1  | ++ find /usr/lib/jvm -maxdepth 1 -name '*jdk*' -type d
openhab-1  | Configuring Java unlimited strength cryptography policy...
openhab-1  | + export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
openhab-1  | + JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
openhab-1  | + '[' unlimited = unlimited ']'
openhab-1  | + echo 'Configuring Java unlimited strength cryptography policy...'
openhab-1  | + sed -i 's/^crypto.policy=limited/crypto.policy=unlimited/' /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security
openhab-1  | + capsh --print
openhab-1  | + grep -E Current:.+,cap_net_admin,cap_net_raw,.+
openhab-1  | + rm -f '/var/lock/LCK..*'
openhab-1  | + rm -f /openhab/userdata/tmp/instances/instance.properties
openhab-1  | + NEW_USER_ID=9001
openhab-1  | + NEW_GROUP_ID=9001
openhab-1  | + echo 'Starting with openhab user id: 9001 and group id: 9001'
openhab-1  | Starting with openhab user id: 9001 and group id: 9001
openhab-1  | + id -u openhab
openhab-1  | ++ getent group 9001
openhab-1  | + '[' -z '' ']'
openhab-1  | + echo 'Create group openhab with id 9001'
openhab-1  | + groupadd -g 9001 openhab
openhab-1  | Create group openhab with id 9001
openhab-1  | Create user openhab with id 9001
openhab-1  | + echo 'Create user openhab with id 9001'
openhab-1  | + adduser -u 9001 --disabled-password --gecos '' --home /openhab --gid 9001 openhab
openhab-1  | Warning: The home dir /openhab you specified already exists.
openhab-1  | Adding user `openhab' ...
openhab-1  | Adding new user `openhab' (9001) with group `openhab' ...
openhab-1  | adduser: Warning: The home directory `/openhab' does not belong to the user you are currently creating.
openhab-1  | The home directory `/openhab' already exists.  Not copying from `/etc/skel'.
openhab-1  | + groupadd -g 11 audio2
openhab-1  | + groupadd -g 14 uucp2
openhab-1  | + groupadd -g 16 dialout2
openhab-1  | + groupadd -g 17 audio3
openhab-1  | + groupadd -g 18 dialout3
openhab-1  | + groupadd -g 32 uucp3
openhab-1  | + groupadd -g 63 audio4
openhab-1  | + groupadd -g 490 dialout4
openhab-1  | + groupadd -g 492 audio5
openhab-1  | + groupadd -g 997 gpio
openhab-1  | + adduser openhab audio
openhab-1  | Adding user `openhab' to group `audio' ...
openhab-1  | Adding user openhab to group audio
openhab-1  | Done.
openhab-1  | + adduser openhab audio2
openhab-1  | Adding user `openhab' to group `audio2' ...
openhab-1  | Adding user openhab to group audio2
openhab-1  | Done.
openhab-1  | + adduser openhab audio3
openhab-1  | Adding user `openhab' to group `audio3' ...
openhab-1  | Adding user openhab to group audio3
openhab-1  | Done.
openhab-1  | + adduser openhab audio4
openhab-1  | Adding user `openhab' to group `audio4' ...
openhab-1  | Adding user openhab to group audio4
openhab-1  | Done.
openhab-1  | + adduser openhab audio5
openhab-1  | Adding user `openhab' to group `audio5' ...
openhab-1  | Adding user openhab to group audio5
openhab-1  | Done.
openhab-1  | + adduser openhab dialout
openhab-1  | Adding user `openhab' to group `dialout' ...
openhab-1  | Adding user openhab to group dialout
openhab-1  | Done.
openhab-1  | + adduser openhab dialout2
openhab-1  | Adding user `openhab' to group `dialout2' ...
openhab-1  | Adding user openhab to group dialout2
openhab-1  | Done.
openhab-1  | + adduser openhab dialout3
openhab-1  | Adding user `openhab' to group `dialout3' ...
openhab-1  | Adding user openhab to group dialout3
openhab-1  | Done.
openhab-1  | + adduser openhab dialout4
openhab-1  | Adding user `openhab' to group `dialout4' ...
openhab-1  | Adding user openhab to group dialout4
openhab-1  | Done.
openhab-1  | + adduser openhab gpio
openhab-1  | Adding user `openhab' to group `gpio' ...
openhab-1  | Adding user openhab to group gpio
openhab-1  | Done.
openhab-1  | + adduser openhab uucp
openhab-1  | Adding user `openhab' to group `uucp' ...
openhab-1  | Adding user openhab to group uucp
openhab-1  | Done.
openhab-1  | + adduser openhab uucp2
openhab-1  | Adding user `openhab' to group `uucp2' ...
openhab-1  | Adding user openhab to group uucp2
openhab-1  | Done.
openhab-1  | + adduser openhab uucp3
openhab-1  | Adding user `openhab' to group `uucp3' ...
openhab-1  | Adding user openhab to group uucp3
openhab-1  | Done.
openhab-1  | + initialize_volume /openhab/conf /openhab/dist/conf
openhab-1  | + volume=/openhab/conf
openhab-1  | + source=/openhab/dist/conf
openhab-1  | ++ ls -A /openhab/conf
openhab-1  | Initializing empty volume /openhab/conf ...
openhab-1  | + '[' -z '' ']'
openhab-1  | + echo 'Initializing empty volume /openhab/conf ...'
openhab-1  | + cp -av /openhab/dist/conf/. /openhab/conf/
openhab-1  | '/openhab/dist/conf/./html' -> '/openhab/conf/./html'
openhab-1  | '/openhab/dist/conf/./html/index.html' -> '/openhab/conf/./html/index.html'
openhab-1  | '/openhab/dist/conf/./html/readme.txt' -> '/openhab/conf/./html/readme.txt'
openhab-1  | '/openhab/dist/conf/./icons' -> '/openhab/conf/./icons'
openhab-1  | '/openhab/dist/conf/./icons/classic' -> '/openhab/conf/./icons/classic'
openhab-1  | '/openhab/dist/conf/./icons/classic/readme.txt' -> '/openhab/conf/./icons/classic/readme.txt'
openhab-1  | '/openhab/dist/conf/./items' -> '/openhab/conf/./items'
openhab-1  | '/openhab/dist/conf/./items/readme.txt' -> '/openhab/conf/./items/readme.txt'
openhab-1  | '/openhab/dist/conf/./persistence' -> '/openhab/conf/./persistence'
openhab-1  | '/openhab/dist/conf/./persistence/readme.txt' -> '/openhab/conf/./persistence/readme.txt'
openhab-1  | '/openhab/dist/conf/./rules' -> '/openhab/conf/./rules'
openhab-1  | '/openhab/dist/conf/./rules/readme.txt' -> '/openhab/conf/./rules/readme.txt'
openhab-1  | '/openhab/dist/conf/./scripts' -> '/openhab/conf/./scripts'
openhab-1  | '/openhab/dist/conf/./scripts/readme.txt' -> '/openhab/conf/./scripts/readme.txt'
openhab-1  | '/openhab/dist/conf/./services' -> '/openhab/conf/./services'
openhab-1  | '/openhab/dist/conf/./services/addons.cfg' -> '/openhab/conf/./services/addons.cfg'
openhab-1  | '/openhab/dist/conf/./services/readme.txt' -> '/openhab/conf/./services/readme.txt'
openhab-1  | '/openhab/dist/conf/./services/runtime.cfg' -> '/openhab/conf/./services/runtime.cfg'
openhab-1  | '/openhab/dist/conf/./sitemaps' -> '/openhab/conf/./sitemaps'
openhab-1  | '/openhab/dist/conf/./sitemaps/readme.txt' -> '/openhab/conf/./sitemaps/readme.txt'
openhab-1  | '/openhab/dist/conf/./sounds' -> '/openhab/conf/./sounds'
openhab-1  | '/openhab/dist/conf/./sounds/barking.mp3' -> '/openhab/conf/./sounds/barking.mp3'
openhab-1  | '/openhab/dist/conf/./sounds/doorbell.mp3' -> '/openhab/conf/./sounds/doorbell.mp3'
openhab-1  | '/openhab/dist/conf/./tags' -> '/openhab/conf/./tags'
openhab-1  | '/openhab/dist/conf/./tags/readme.txt' -> '/openhab/conf/./tags/readme.txt'
openhab-1  | '/openhab/dist/conf/./things' -> '/openhab/conf/./things'
openhab-1  | '/openhab/dist/conf/./things/readme.txt' -> '/openhab/conf/./things/readme.txt'
openhab-1  | '/openhab/dist/conf/./transform' -> '/openhab/conf/./transform'
openhab-1  | '/openhab/dist/conf/./transform/de.map' -> '/openhab/conf/./transform/de.map'
openhab-1  | '/openhab/dist/conf/./transform/en.map' -> '/openhab/conf/./transform/en.map'
openhab-1  | '/openhab/dist/conf/./transform/readme.txt' -> '/openhab/conf/./transform/readme.txt'
openhab-1  | + initialize_volume /openhab/userdata /openhab/dist/userdata
openhab-1  | + volume=/openhab/userdata
openhab-1  | + source=/openhab/dist/userdata
openhab-1  | ++ ls -A /openhab/userdata
openhab-1  | + '[' -z '' ']'
openhab-1  | + echo 'Initializing empty volume /openhab/userdata ...'
openhab-1  | + cp -av /openhab/dist/userdata/. /openhab/userdata/
openhab-1  | Initializing empty volume /openhab/userdata ...
openhab-1  | '/openhab/dist/userdata/./etc' -> '/openhab/userdata/./etc'
openhab-1  | '/openhab/dist/userdata/./etc/all.policy' -> '/openhab/userdata/./etc/all.policy'
openhab-1  | '/openhab/dist/userdata/./etc/branding-ssh.properties' -> '/openhab/userdata/./etc/branding-ssh.properties'
openhab-1  | '/openhab/dist/userdata/./etc/branding.properties' -> '/openhab/userdata/./etc/branding.properties'
openhab-1  | '/openhab/dist/userdata/./etc/config.properties' -> '/openhab/userdata/./etc/config.properties'
openhab-1  | '/openhab/dist/userdata/./etc/custom.properties' -> '/openhab/userdata/./etc/custom.properties'
openhab-1  | '/openhab/dist/userdata/./etc/custom.system.properties' -> '/openhab/userdata/./etc/custom.system.properties'
openhab-1  | '/openhab/dist/userdata/./etc/distribution.info' -> '/openhab/userdata/./etc/distribution.info'
openhab-1  | '/openhab/dist/userdata/./etc/equinox-debug.properties' -> '/openhab/userdata/./etc/equinox-debug.properties'
openhab-1  | '/openhab/dist/userdata/./etc/java.util.logging.properties' -> '/openhab/userdata/./etc/java.util.logging.properties'
openhab-1  | '/openhab/dist/userdata/./etc/jmx.acl.org.apache.karaf.bundle.cfg' -> '/openhab/userdata/./etc/jmx.acl.org.apache.karaf.bundle.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/jmx.acl.org.apache.karaf.config.cfg' -> '/openhab/userdata/./etc/jmx.acl.org.apache.karaf.config.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/jre.properties' -> '/openhab/userdata/./etc/jre.properties'
openhab-1  | '/openhab/dist/userdata/./etc/keys.properties' -> '/openhab/userdata/./etc/keys.properties'
openhab-1  | '/openhab/dist/userdata/./etc/keystore' -> '/openhab/userdata/./etc/keystore'
openhab-1  | '/openhab/dist/userdata/./etc/log4j2.xml' -> '/openhab/userdata/./etc/log4j2.xml'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.felix.eventadmin.impl.EventAdmin.cfg' -> '/openhab/userdata/./etc/org.apache.felix.eventadmin.impl.EventAdmin.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.felix.fileinstall-deploy.cfg' -> '/openhab/userdata/./etc/org.apache.felix.fileinstall-deploy.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.command.acl.bundle.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.command.acl.bundle.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.command.acl.config.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.command.acl.config.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.command.acl.feature.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.command.acl.feature.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.command.acl.jaas.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.command.acl.jaas.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.command.acl.kar.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.command.acl.kar.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.command.acl.scope_bundle.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.command.acl.scope_bundle.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.command.acl.shell.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.command.acl.shell.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.command.acl.system.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.command.acl.system.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.features.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.features.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.features.repos.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.features.repos.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.features.xml' -> '/openhab/userdata/./etc/org.apache.karaf.features.xml'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.jaas.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.jaas.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.kar.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.kar.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.log.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.log.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.apache.karaf.shell.cfg' -> '/openhab/userdata/./etc/org.apache.karaf.shell.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.jupnp.cfg' -> '/openhab/userdata/./etc/org.jupnp.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.openhab.audio.cfg' -> '/openhab/userdata/./etc/org.openhab.audio.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.openhab.voice.cfg' -> '/openhab/userdata/./etc/org.openhab.voice.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.ops4j.pax.logging.cfg' -> '/openhab/userdata/./etc/org.ops4j.pax.logging.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.ops4j.pax.url.mvn.cfg' -> '/openhab/userdata/./etc/org.ops4j.pax.url.mvn.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/org.ops4j.pax.web.cfg' -> '/openhab/userdata/./etc/org.ops4j.pax.web.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/overrides.properties' -> '/openhab/userdata/./etc/overrides.properties'
openhab-1  | '/openhab/dist/userdata/./etc/profile.cfg' -> '/openhab/userdata/./etc/profile.cfg'
openhab-1  | '/openhab/dist/userdata/./etc/scripts' -> '/openhab/userdata/./etc/scripts'
openhab-1  | '/openhab/dist/userdata/./etc/scripts/shell.colors.script' -> '/openhab/userdata/./etc/scripts/shell.colors.script'
openhab-1  | '/openhab/dist/userdata/./etc/scripts/shell.completion.script' -> '/openhab/userdata/./etc/scripts/shell.completion.script'
openhab-1  | '/openhab/dist/userdata/./etc/shell.init.script' -> '/openhab/userdata/./etc/shell.init.script'
openhab-1  | '/openhab/dist/userdata/./etc/startup.properties' -> '/openhab/userdata/./etc/startup.properties'
openhab-1  | '/openhab/dist/userdata/./etc/system.properties' -> '/openhab/userdata/./etc/system.properties'
openhab-1  | '/openhab/dist/userdata/./etc/users.properties' -> '/openhab/userdata/./etc/users.properties'
openhab-1  | '/openhab/dist/userdata/./etc/version.properties' -> '/openhab/userdata/./etc/version.properties'
openhab-1  | '/openhab/dist/userdata/./logs' -> '/openhab/userdata/./logs'
openhab-1  | '/openhab/dist/userdata/./logs/openhab.log' -> '/openhab/userdata/./logs/openhab.log'
openhab-1  | '/openhab/dist/userdata/./tmp' -> '/openhab/userdata/./tmp'
openhab-1  | '/openhab/dist/userdata/./tmp/README' -> '/openhab/userdata/./tmp/README'
openhab-1  | ++ cmp /openhab/userdata/etc/version.properties /openhab/dist/userdata/etc/version.properties
openhab-1  | + '[' '!' -z ']'
openhab-1  | + chown -R openhab:openhab /openhab
openhab-1  | + sync
openhab-1  | + '[' -d /etc/cont-init.d ']'
openhab-1  | + sync
openhab-1  | + '[' false == false ']'
openhab-1  | ++ IFS=' '
openhab-1  | ++ echo gosu openhab tini -s ./start.sh
openhab-1  | + '[' 'gosu openhab tini -s ./start.sh' == 'gosu openhab tini -s ./start.sh' ']'
openhab-1  | + command=($@ server)
openhab-1  | + exec gosu openhab tini -s ./start.sh server
openhab-1  | Launching the openHAB runtime...

In other window:

docker-host:/home/mynuc$ nc -vz localhost 8080
Connection to localhost (127.0.0.1) 8080 port [tcp/http-alt] succeeded!

If this doesn’t work for you, please post the output after you run “docker compose up”

Thanks for all the feedback.
I will give a update after installing a fresh new OS, Docker, Docker Desktop and Openhab were I will use things I learned from Ubuntu and the info given given by the Openhab team above.

I did some testing and can get it to work when using the docker form the app center. You can find the steps below.
On my Synology I was used to work with the GUI from docker but that is the part I can´t get to work.
I can install Docker Desktop and install Openhab as written below and see openhab in the GUI but accessing Openhab on port 8080 is not working. Does anyone have the procedure how to install Docker Desktop please share

Install ubuntu and the additional fixes

Install docker from App Center

Running Docker as nomal user
sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
	
sudo snap disable docker
	
sudo snap enable docker
	
Install openhab by creating the required directories

mkdir -p /home/mynuc/docker/openhab4.1.1/addons
mkdir -p /home/mynuc/docker/openhab4.1.1/conf
mkdir -p /home/mynuc/docker/openhab4.1.1/userdata

yaml docker compose plaatsen in docker directory
Create a file with name docker-compose.yml and add the following lines

services:
  openhab:
    image: "openhab/openhab:4.1.1"
    restart: always
    network_mode: host
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/timezone:/etc/timezone:ro"
      - "/home/mynuc/docker/openhab4.1.1/addons:/openhab/addons"
      - "/home/mynuc/docker/openhab4.1.1/conf:/openhab/conf"
      - "/home/mynuc/docker/openhab4.1.1/userdata:/openhab/userdata"
    environment:
      CRYPTO_POLICY: "unlimited"
      EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Amsterdam"
      OPENHAB_HTTP_PORT: "8080"
      OPENHAB_HTTPS_PORT: "8443"

Run docker compose up -d

Access openhab with localhost or ip address on port 8080.

Just glancing, I think these lines would be helpful. I wrote a lot in my above post, but to summarize, these lines are required.