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

Commit

Permalink
Merge pull request #185 from vania-pooh/master
Browse files Browse the repository at this point in the history
Exactly matching container name in Docker mode (fixes #184)
  • Loading branch information
aandryashin authored Sep 24, 2018
2 parents 7dca490 + b7275c4 commit 67391aa
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 67391aa

Please sign in to comment.