I have stopped all service and executed command netstat -lt
in my host OS terminal window and it outputted the following.
root@ba7c427:~# netstat -lt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.2:domain 0.0.0.0:* LISTEN
tcp 0 0 10.114.102.1:domain 0.0.0.0:* LISTEN
tcp 0 0 :::1883 :::* LISTEN
tcp 0 0 :::48484 :::* LISTEN
tcp 0 0 :::22222 :::* LISTEN
root@ba7c427:~#
So it appears to be listening to the standard MQTT port 1883.
Is this normal and if so why is it listening to this port ?
I also think that this makes that my mqtt service failed to start.
FYI here below the relevant extract from my docker-compose.yml specifying the mqtt service.
mqtt:
image: arm32v6/eclipse-mosquitto:1.6.2 #https://hub.docker.com/_/eclipse-mosquitto
network_mode: host
ports:
- "1883:1883"
and here below the log when I start the mqtt service:
03.10.19 10:01:49 (+0200) Restarting service 'mqtt sha256:30caf0d6fd5119b2aed22be3976c01a67b0d359896c4b249a8a8334b9c6070c1'
03.10.19 10:01:49 (+0200) mqtt 1570089709: mosquitto version 1.6.2 starting
03.10.19 10:01:49 (+0200) mqtt 1570089709: Config loaded from /mosquitto/config/mosquitto.conf.
03.10.19 10:01:49 (+0200) mqtt 1570089709: Opening ipv4 listen socket on port 1883.
03.10.19 10:01:49 (+0200) mqtt 1570089709: Error: Address in use
03.10.19 10:01:50 (+0200) Service exited 'mqtt sha256:30caf0d6fd5119b2aed22be3976c01a67b0d359896c4b249a8a8334b9c6070c1'