Docker Community Forums

Share and learn in the Docker community.

Eclipse Mosquitto - no such file or directory

I’ve installed the Eclipse Mosquitto image a little while ago on my Synology NAS and would like to setup a password using the mosquitto_passwd utility.
Unfortunately, whenever I try to run it in an SSH session, I get

-ash: mosquitto_pub: command not found

Doing a find gives the following results, but none of them seem to work. Any ideas?

/# find / -name mosquitto_passwd

I think I found the answer myself.

I need to enter into the container console before trying to execute any commands, ie through
docker exec -it mosquitto sh


1 Like