Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Scope
Commits
d8f73862
Commit
d8f73862
authored
5 years ago
by
Bryan Boreham
Browse files
Options
Download
Email Patches
Plain Diff
Improve comment
parent
a11e4ec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
probe/docker/container.go
+2
-1
probe/docker/container.go
with
2 additions
and
1 deletion
+2
-1
probe/docker/container.go
+
2
-
1
View file @
d8f73862
...
...
@@ -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
""
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment