-
Describe the bug I'm using watchtower on two different hosts running two different docker instances. On one host, email notifications show the host name in the subject (Watchtower updates on <server_name>). On the other host, I get a string of numbers/letters instead (Watchtower updates on 28959a6d25cf) To Reproduce Just wait for notification to be sent (on container/docker startup or when image updates are detected). Expected behavior Show host name in subject of email notification (like watchtower does on my other host/docker install). Environment docker-compose.yml files:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Watchtower uses the hostname that the environment supplies. Docker normally sets the hostname based on the UTS. My guess is that it uses You can supply the hostname when starting a container with the
Refer to the |
Beta Was this translation helpful? Give feedback.
-
Couldn't get $(hostname) to work with compose so I just set "hostname" manually and that did the trick. |
Beta Was this translation helpful? Give feedback.
Watchtower uses the hostname that the environment supplies. Docker normally sets the hostname based on the UTS. My guess is that it uses
host
networking on one of the instances perhaps?You can supply the hostname when starting a container with the
--hostname
argument (and optionally use$(hostname)
to get the current systems hostname):Refer to the
docker run
docs.