Commit fe4f432
committed
Improve container cleanup to handle short image IDs and running containers
- Match both short (12 char) and long image IDs
- Check container state before stopping to avoid unnecessary operations
- Handle NotModifiedError when container is already stopped
- Fixes CI failure where running containers prevented image removal1 parent 062844d commit fe4f432
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
0 commit comments