Skip to content

Commit

Permalink
fix: test fixture does not remove docker image (#1451)
Browse files Browse the repository at this point in the history
- need to use force as image is used by container (stopped)

Signed-off-by: Dmitri Khokhlov <[email protected]>
  • Loading branch information
dkhokhlov authored Jan 4, 2024
1 parent cf7e41f commit fe8a747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-integration/test_integration/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def random_string(length):
def remove_docker_image(image_name, max_attempts=5, wait_seconds=1):
for attempt in range(max_attempts):
try:
subprocess.run(["docker", "rmi", image_name], check=True, capture_output=True)
subprocess.run(["docker", "rmi", "-f", image_name], check=True, capture_output=True)
print(f"Image {image_name} successfully removed.")
break
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit fe8a747

Please sign in to comment.