eclipse-mosquitto installed them with Docker on Ubuntu. I want to execute the "docker exec" commands but it gives the following error? Can you help?
sudo docker ps
outPut:
CONTAINER ID: b416d716ffd6 IMAGE: eclipse-mosquitto COMMAND: "/docker-entrypoint.…" CREATED: 2 days ago STATUS: Up 44 minutes PORTS: 0.0.0.0:9001->9001/tcp, 0.0.0.0:11883->1883/tcp NAME: charming_bohr
command:
sudo docker exec -it b416d716ffd6 /bin/bash
OutPut: OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown
for: The total number of bytes received since the broker started.
sudo docker exec -it b416d716ffd6 $SYS/broker/bytes/received
OutPut:
OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "/broker/bytes/received": stat /broker/bytes/received: no such file or directory: unknown
sh
instead ->sudo docker exec -it b416d716ffd6 sh
– Paul