Docker Community Forums

Share and learn in the Docker community.

Container Created but will not run on RPI4

Hi I have loaded Docker RPI4 and installed Hassio supervised software all containers created however mosquitto has created an image but will not load. There is no logs ,when I start the error is

Screenshot 2021-04-18 at 08.42.02

I did have mosquitto running on another RPI but had a bad disk file so i started a fresh, now i am unable to get Mosiqutto to load

Any help would be appreciated

It says that the port 1883 is allready in use? maybe checkup on that, if there is a container running or something running on the host itself.

To install Docker on your Raspberry Pi, you need to go through the following steps:

Update and upgrade your system.
Download the installation script and install the package.
Allow a non-root user to execute Docker commands.
Verify installation by checking the Docker version.
Test the set up by running a “hello-world” container.

Hi Guys , thanks for the replies as a newbie to docker i am working thru the various videos and guide lines . I have been able to solve the issue with the port being use as it is now showing up now i have another issue `’'1618898047: mosquitto version 2.0.10 starting

1618898047: Config loaded from /mosquitto/config/mosquitto.conf.

1618898047: Starting in local only mode. Connections will only be possible from clients running on this machine.

1618898047: Create a configuration file which defines a listener to allow remote access.

1618898047: For more details see Authentication methods | Eclipse Mosquitto

1618898047: Opening ipv4 listen socket on port 1883.

1618898047: Opening ipv6 listen socket on port 1883.

1618898047: Error: Address not available

1618898047: mosquitto version 2.0.10 running`

I try and find an answer but as you guys probably know when you started it is not easy but will come better i hope fully later. Thanks again.

Can you tell it which tag of mosquitto to use?
Just for fun, try and change it from “latest” ( which I guess it is now ) to: 1.6.14

Hi yes it is the tag is latest, apologise , how to i can change it to 1,16.14 ? Can i change it by using portainer ? I did a check on what was using 1883 by using lsof it stated it was free ???

Yea, I belive its because of:

And yes im sure you can do it in portainer somehow, but im not a portainer user myself.

but according to: Create New Container - Documentation
you can do it on container creation?

Thank you i will look into int and let you. strange that i could not pick this up in google , i have been trying for days.

Hi it is not working for me , I noticed that the tread was mentioning using
docker run -it -p 1883:1883 eclipse-mosquitto:<1.6.14.2> mosquitto -c /mosquitto-no-auth.conf

I tried by terminal and i am getting no such file or directory. I cannot see where there is a solution or help on this matter , surely i must be able to roll back . I I cannot find any other way only a zip file but i don’t have a clue on how to use these to extract the script or image
I might as well just stick with HA as this Docker situation seems to be nothing but trouble , may be fine for people using all the time.

Thanks for your help.

That tag dosnt exist.
Try:

docker run -itd -p 1883:1883 -p 9001:9001 eclipse-mosquitto:1.6.14

That works for me atleast