Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.

  • Hi All,

    I'm fairly new to Cloudron and Docker and I'm trying to deploy a simple React app which I created using npx create-react-app.

    I can create the container locally with port 80:80 and access it from my browser, however when I deploy to Cloudron I get the following errors:

    Oct 14 22:40:21 / /docker-entrypoint.d/ is not empty, will attempt to perform configuration
    Oct 14 22:40:21 / Looking for shell scripts in /docker-entrypoint.d/
    Oct 14 22:40:21 / Launching /docker-entrypoint.d/
    Oct 14 22:40:21 error: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
    Oct 14 22:40:21 / Launching /docker-entrypoint.d/
    Oct 14 22:40:21 / Configuration complete; ready for start up
    Oct 14 22:40:21 2020/10/14 21:40:21 [emerg] 1#1: mkdir() "/var/cache/nginx/client_temp" failed (30: Read-only file system)
    Oct 14 22:40:21 nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (30: Read-only file system)

    I can see it's something to do with the file Nginx is trying to edit but I am unsure how to fix it.
    There are some web examples on the Cloudron Gitlab however they seem to be running the app in development mode instead of actually building it.

    Apologies in advance if I'm just being a Docker noob and this is nothing to do with Cloudron 😛



  • Staff

    @rossmaclean On Cloudron, the containers run on a read only file system. They can write only to specific locations at runtime - see .

    For configuring nginx, I think is the info you are looking for. You can see how it's done in the teamspeak package.

  • @girish Sorry for the late reply, I tried this and got it working!