From b7275c411a208babb42dd4dc6e482a1dea078a50 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Mon, 24 Sep 2018 20:32:46 +0300 Subject: [PATCH] Exactly matching container name in Docker mode (fixes #184) --- selenoid/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selenoid/docker.go b/selenoid/docker.go index 351a496..8df3fb7 100644 --- a/selenoid/docker.go +++ b/selenoid/docker.go @@ -603,7 +603,7 @@ func (c *DockerConfigurator) getSelenoidUIContainer() *types.Container { func (c *DockerConfigurator) getContainer(name string) *types.Container { f := filters.NewArgs() - f.Add("name", name) + f.Add("name", fmt.Sprintf("^/%s$", name)) containers, err := c.docker.ContainerList(context.Background(), types.ContainerListOptions{Filters: f}) if err != nil { return nil