Commit 2e8c9405 by James Cammarata

Merge pull request #7419 from mattjbray/docker-fix-selection-by-name

docker: fix targetting images by name
parents 2478028c 8363ab5a
......@@ -516,7 +516,7 @@ class DockerManager:
# '{} {}'.format(entrypoint, command)
command_matches = (not command or running_command.endswith(command))
if name_matches or (image_matches and tag_matches and command_matches):
if name_matches or (name is None and image_matches and tag_matches and command_matches):
details = self.client.inspect_container(i['Id'])
details = _docker_id_quirk(details)
deployed.append(details)
......
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