We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24688dc commit 764193dCopy full SHA for 764193d
src/interceptors/docker/docker-networking.ts
@@ -338,6 +338,11 @@ class DockerNetworkMonitor {
338
} else {
339
// Elsewhere it's true for *all* traffic:
340
aliases.push([container.Config.Hostname, containerIp]);
341
+
342
+ // In some cases (custom name defined) which we can't reliably detect, on non-default
343
+ // networks it's also possible to resolve a container using just its container name
344
+ // (with the leading slash stripped). To handle that we just route all names:
345
+ aliases.push([container.Name.slice(1), containerIp]);
346
}
347
348
// Every container can be accessed by any configured aliases on this network:
0 commit comments