lobaro / restic-backup-docker

A docker container to automate backups with restic
Apache License 2.0
330 stars 114 forks source link

Environment variable HOSTNAME not used #45

Closed vfauth closed 4 years ago

vfauth commented 4 years ago

The possibility to use the environment variable HOSTNAME listed there does not work, the only way it to use the docker --hostname option.

niondir commented 4 years ago

Thanks for pointing this out. We should correct the docs. One way to set the host name is probably enough :)

But maybe thats just an issue when using compose. Since it's still documented here and referenced in the readme: https://docs.docker.com/engine/reference/run/#env-environment-variables

vfauth commented 4 years ago

But I don't use compose.

niondir commented 4 years ago

Okay, good to know. I guess I misinterpreted the docker docs. They overwrite the HOSTNAME env so when we set it it's not used.