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
/volume1/@docker/btrfs/subvolumes/d71bdbcc16480b2497fbb363b6d525870f270c3033a63870bf41f4f5a1157a1a/usr/bin/mosquitto_passwd
/volume1/@docker/btrfs/subvolumes/12c85c14bfb888b74a836109bc10f1dded16ac0bca351f3fec3d77833f464343-init/usr/bin/mosquitto_passwd
/volume1/@docker/btrfs/subvolumes/12c85c14bfb888b74a836109bc10f1dded16ac0bca351f3fec3d77833f464343/usr/bin/mosquitto_passwd
/volume1/@docker/btrfs/subvolumes/41abe92b8693b81215841470b17f18393e7a0bcf492a2424089a2b60f8aa41e5/usr/bin/mosquitto_passwd
/volume1/@docker/btrfs/subvolumes/dd381356d4fc7d71c96ea682c5010757e6940e2a6af457ecf2ad3f898c58e000/usr/bin/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

Doh.

1 Like