important-guitar-33892
04/26/2023, 12:18 PMError response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/root/mosquitto.conf" to rootfs at "/mosquitto/config/mosquitto.conf": mount /root/mosquitto.conf:/mosquitto/config/mosquitto.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
I think the error is from the compose file template for mosquitto, because this tries to mount a directory to a volume
volumes:
- /root/mosquitto.conf:/mosquitto/config/mosquitto.conf
- /root/wait.sh:/mosquitto/config/wait.sh
Any idea on how to fix this? Or should I create the needed files on the host befor starting the containers?