After docker pull what did you do? I only edit the compose file, then do docker compose up. No docker pull.
I wonder if you have a container already running, but with the wrong settings, which is then causing the new container to fail. I’m not sure if the commands to run, but find out how to see what containers are already running!
After docker pull britkat/giv_tcp-ma I get the following:
Using default tag: latest
latest: Pulling from britkat/giv_tcp-ma
Digest: sha256:bbda1186c616f6f546596057e230396393584d435f6c85116cf8c7191e9dd6a3
Status: Image is up to date for britkat/giv_tcp-ma:latest docker.io/britkat/giv_tcp-ma:latest
Looks like it gets me the latest image, although I don’t know where its located.
docker ps shows the following:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0f544b8c5f81 openhab/openhab:3.4.3-debian “/entrypoint gosu op…” 9 hours ago Up 24 minutes (healthy) openhab
The openhab container is the one I set up following the info in the help pages.
Could this be the problem?.
Using docker stop openhab I stopped that container.
Running docker compose up gives me the same error message as before. I now have no containers running.
Yep, because the giv_tcp container wants to listen on the MQTT port 1883, but Mosquitto is already using it. I’m not sure why the container is doing that - as mentioned it seems to want to setup another MQTT broker, but a quick glance over the docs don’t seem to show how to disable this.
What happens if you set MQTT to false for the container, and try using the HTTP binding instead, as in my last example?