Docker issues with a new install - failing to make config persistant across reboots

Hello,

The problem is that we have never been able to reproduce it, which makes troubleshooting quite difficult. I am also not able to reproduce it with your compose file. The DB and initial ownCloud setup is done on first startup, and I am able to restart the compose stack many times without issue.

What I can’t understand is why is config.php not being mapped to the local host

That’s something I can’t reproduce as well. After the first start, the bind mount looks like this:

❯ sudo tree /tmp/oc
/tmp/oc
├── apps
├── config
│   ├── config.php
│   ├── objectstore.config.php
│   └── overwrite.config.php
├── files
│   ├── index.html
│   └── owncloud.log
└── sessions
    ├── sess_184q9s6863hcm78hnootb0dn1s
    └── sess_4obhfcaa47rhq18ub025r3jc5o

Every reboot I have to edit it to add the trusted_domains.

Never touch the config.php file or any other default config file in the config directory manually. Those files are handled by the container. Use the provided environment variables (recommended) or mount your own config file. For more details, see my post at You are accessing the server from an untrusted domain - #10 by rkaussow

1 Like