Run the following commands inside the container find /config -type d -exec chmod 775 {} \; find /config -type f -exec chmod 664 {} \; chown -R mosquitto:mosquitto /config The problem is run.sh inside the container has this line chmod -R 666 /config which messed the folder permissions up.