Hello,
I’m wondering how to set the hostname inside a container running on ZimaOS.
Here’s the scenario: I’m running Duplicati in a container on my ZimaBoard with ZimaOS 1.4. The network mode for the Duplicati container is set to Bridge for security reasons. However, this results in the browser tab showing a title like "random_id_code - Duplicati". In contrast, when I launch the Duplicati app on my Mac, the tab shows "My_Mac_name - Duplicati" — which is much clearer.
I’d like to set a more meaningful hostname like "My-Zimaboard" or ideally match the physical machine’s hostname.
I tried setting hostname: My-Zima inside the Docker Compose file, but this seems to have no effect when using the ZimaOS Compose form. Every time I reinstall the app, Duplicati generates a new random ID as hostname.
I also attempted to use an additional argument like --hostname=my-desired-hostname, but that didn’t work either.
Any idea how to solve this?
Is there a way to set the container’s hostname from the GUI installation process provided by ZimaOS?
It seems the hostname parameter is not preserved when the Compose file is imported via the ZimaOS GUI. Please take a look at the following screenshot from the Duplicati Docker app installation.
The hostname seems to be lost during the process, as I verified by running docker exec duplicati hostname from the terminal — it returns a randomly auto-assigned code. What I’d like instead is to assign a custom hostname like MY-ZimaBoard_NAME , without having to use host mode in the container’s network settings.
Any suggestions on how to achieve this via the ZimaOS GUI, or if there’s a workaround that still allows bridge mode and hostname customization?