• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT test
#13
The only possibility to access Docker functions and to start a container on netPI is using its Docker web UI. Using Docker commands in a shell is not possible at all and was never intended from the beginning. netPI is a secured device with no ssh service active and this is why there is no shell. You could run of course a shell in a container ... but this is nevertheless no shell that gives you access to the host Linux.

I agree that the web page https://hub.docker.com/_/eclipse-mosquitto describes the "docker ..." commands of course, but this is for standard Linux shells that are not running in a container. In 99.99% this is the standard use case this is fine ... but not for netPI.

So what you must do is to "translate" the described command line

Code:
docker run -it -p 1883:1883 -p 9001:9001 -v mosquitto.conf:/mosquitto/config/mosquitto.conf eclipse-mosquitto

into netPI Docker web UI compliant container deployment parameter set like the following picture shows

   

For a simple and ease use I avoided to configure the volume mapping "mosquitto.conf:/mosquitto/config/mosquitto.conf" in my screen shot. It is not needed.

Press "Deploy container" and you will see mosquitto running with charm.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
MQTT test - by DSongra - February-27th-2020, 07:46 AM
RE: MQTT test - by Armin@netPI - February-27th-2020, 08:04 AM
RE: MQTT test - by DSongra - February-27th-2020, 08:37 AM
RE: MQTT test - by Armin@netPI - February-27th-2020, 05:08 PM
RE: MQTT test - by DSongra - February-29th-2020, 08:32 AM
RE: MQTT test - by Armin@netPI - February-29th-2020, 01:09 PM
RE: MQTT test - by DSongra - March-2nd-2020, 10:28 AM
RE: MQTT test - by Armin@netPI - March-2nd-2020, 12:51 PM
RE: MQTT test - by MGharat - October-20th-2020, 07:11 AM
RE: MQTT test - by Armin@netPI - October-20th-2020, 07:35 AM
RE: MQTT test - by Armin@netPI - October-20th-2020, 08:00 AM
RE: MQTT test - by MGharat - October-20th-2020, 08:08 AM
RE: MQTT test - by Armin@netPI - October-20th-2020, 08:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mosquitto MQTT Broker Armin@netPI 8 5,552 March-3rd-2021, 11:57 AM
Last Post: tad
  Node-Red MQTT with SSL/TLS can't connect to broker BFH_SAM2 6 5,734 May-18th-2018, 08:48 AM
Last Post: Armin@netPI
  Receive iot hub messages through MQTT adapter marcel 1 2,626 March-15th-2018, 05:56 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)