Closed technicalguy closed 4 years ago
You should be able to set the hostname of the docker container to something specific. See also: https://serverfault.com/questions/590191/how-to-specify-hostname-for-the-running-container
$ docker run -h foo.bar.baz -i -t ubuntu bash
root@foo:/# hostname
foo
root@foo:/# hostname -d
bar.baz
root@foo:/# hostname -f
foo.bar.baz
Ahh, of course, thanks! Is there somewhere in the documentation that it is worth mentioning this?
The --hostname
option is documented in the readme.
This means that when I go to restic-mount my backups inside the
hosts
directory I see786db61fb11d
when I want to seemy-nas-server
.