mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-06 01:08:03 +00:00
Improve comment
This commit is contained in:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user