Improve comment

This commit is contained in:
Bryan Boreham
2020-03-10 20:12:34 +00:00
parent a11e4ec136
commit d8f7386250

View File

@@ -108,7 +108,8 @@ func (c *container) PID() int {
func (c *container) Hostname() string {
if c.container.Config.Domainname == "" {
// If hostname isn't set on a container it defaults to a random hex
// If hostname isn't set on a container Docker sets it to the
// first 12 characters of the container ID, a random hex
// number which we don't want to show in the UI.
if strings.HasPrefix(c.container.ID, c.container.Config.Hostname) {
return ""