Commit 154ef942 by James Cammarata

Merge pull request #7404 from jimi-c/issue_7363_docker_names

Make sure the docker data has a "Names" field before using it
parents e623911d bfc1201e
......@@ -507,7 +507,9 @@ class DockerManager:
running_image, running_tag = self.get_split_image_tag(i['Image'])
running_command = i['Command'].strip()
name_matches = (name and name in i['Names'])
name_matches = False
if i["Names"]:
name_matches = (name and name in i['Names'])
image_matches = (running_image == image)
tag_matches = (not tag or running_tag == tag)
# if a container has an entrypoint, `command` will actually equal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment