docker: fix targetting images by name
This commit is contained in:
parent
2478028c55
commit
8363ab5a6f
1 changed files with 1 additions and 1 deletions
|
@ -516,7 +516,7 @@ class DockerManager:
|
||||||
# '{} {}'.format(entrypoint, command)
|
# '{} {}'.format(entrypoint, command)
|
||||||
command_matches = (not command or running_command.endswith(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 = self.client.inspect_container(i['Id'])
|
||||||
details = _docker_id_quirk(details)
|
details = _docker_id_quirk(details)
|
||||||
deployed.append(details)
|
deployed.append(details)
|
||||||
|
|
Loading…
Reference in a new issue