• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT test
#11
It seems to me that you have loaded the container hilschernetpi/netpi-raspbian into netPI and logged in using putty. Am I right?

In this case I have to tell you that you are using a Linux console application running  in netpi-raspbian container ... and in a container you will never ever have access to Docker "docker ..." commands. This would be using "Docker in Docker" which is not possible on netPI device.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#12
Dear Armin,

Yes, attached screenshot again.

BR
Madhumati


Attached Files Thumbnail(s)
   
  Reply
#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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mosquitto MQTT Broker Armin@netPI 2 447 December-16th-2019, 07:22 AM
Last Post: Armin@netPI
  Node-Red MQTT with SSL/TLS can't connect to broker BFH_SAM2 6 843 May-18th-2018, 08:48 AM
Last Post: Armin@netPI
  Receive iot hub messages through MQTT adapter marcel 1 402 March-15th-2018, 05:56 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)