# HOSTNAME variable not working in docker

**URL:** https://forum.duplicati.com/t/hostname-variable-not-working-in-docker/21685
**Category:** Uncategorized
**Created:** [November 30, 2025, 11:23pm UTC](https://forum.duplicati.com/t/hostname-variable-not-working-in-docker/21685 "2025-11-30T23:23:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pr1m3](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/p/41988e/32.png) [@pr1m3](https://forum.duplicati.com/u/pr1m3)
#### Post date: [November 30, 2025, 11:23pm UTC](https://forum.duplicati.com/t/hostname-variable-not-working-in-docker/21685/1 "2025-11-30T23:23:10Z")

</div>

even after I am setting HOSTNAME=xyz.domain it is not working rather it is requesting to the google cloud with [https://localhost/logged-in](https://localhost/logged-in) as uri. Whats the reason?

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [December 6, 2025, 2:50pm UTC](https://forum.duplicati.com/t/hostname-variable-not-working-in-docker/21685/2 "2025-12-06T14:50:37Z")

</div>

I don’t use Docker, and don’t use [Google Cloud Storage](https://docs.duplicati.com/backup-destinations/provider-specific-destinations/google-cloud-storage-destination) (or is this Drive?), but

> [@pr1m3](#):
>
> it is not working

Do you have any documentation that says what it should do? I couldn’t find one.

> [@pr1m3](#):
>
> requesting to the google cloud with [https://localhost/logged-in](https://localhost/logged-in) as uri.

Where do you see the URI? Do you mean in GUI? The network is hard to watch.  
What URI are you expecting? Internal Duplicati format is [here](https://docs.duplicati.com/backup-destinations/provider-specific-destinations/google-cloud-storage-destination#url-format-for-commandline). IDK GCS internal.
