Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Exactly matching container name in Docker mode (fixes #184)
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Sep 24, 2018
1 parent 7dca490 commit b7275c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selenoid/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7275c4

Please sign in to comment.