-
|
Hi, I already tried adding the --add-host parameter to the docker run command of the mastercontainer, but this doesn't affect the hosts file of the nexcloud container. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
|
Hi, why would you need such a possibility? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, you can easily set up a local dns server by using one of the following guides: https://github.com/nextcloud/all-in-one#how-can-i-access-nextcloud-locally and put the config in there as custom dns record for that specific pointer. |
Beta Was this translation helpful? Give feedback.
-
|
@szaimen For reliability reasons (e.g. dns resolver fail) it would be helpful to add |
Beta Was this translation helpful? Give feedback.
-
|
At the moment, the only working solution is to add a cron task to replace the hosts file in specific containers. These containers are usually located in /var/lib/docker/containers/container_UUID/. Inside the folder, you can find the hostname file, which allows you to identify the container and replace the hosts file without restarting the container. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I am working on adding some better instructions to the readme: #7607 |
Beta Was this translation helpful? Give feedback.
See https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-overwrite-the-local-dns-resolution-for-some-domains-or-add-extra-hosts-to-the-containers