rdo164 / XR-CTR

Proyecto final IoT
https://rdo164.github.io/XR-CTR/
0 stars 0 forks source link

Abrir el contenedor #2

Open rdo164 opened 7 months ago

rdo164 commented 7 months ago

docker-compose up -d

Recreating xr-ctr_influxdb_1 ... Starting mqtt-broker ... Starting mqtt-broker ... error

Recreating xr-ctr_influxdb_1 ... done isten tcp4 0.0.0.0:1883: bind: address already in use

ERROR: for mqtt-broker Cannot start service mqtt-broker: driver failed programming external connectivity on endpoint mqtt-broker (f4cde8a38100b77f995e95affc5ccfaecda1fb91fcf3a5542fbe64421256e8bc): Error starting userland proxy: l6e8bc): Error starting userland proxy: listen tcp4 0.0.0.0:1883: bind: address already in use ERROR: Encountered errors while bringing up the project.

rdo164 commented 7 months ago
sudo lsof -i :1883

Aparece : COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mosquitto 251 mosquitto 5u IPv4 259 0t0 TCP localhost:1883 (LISTEN) mosquitto 251 mosquitto 6u IPv6 260 0t0 TCP ip6-localhost:1883 (LISTEN)

  1. Matamos el puerto del contenedor

    sudo kill 251
  2. sudo docker-compose up -d