Commit 3b3c81f
fix(image): gracefully handle missing Docker/Podman engine
ImageUtils.hostInfo() now returns an empty string instead of throwing
RuntimeException when the container engine binary is missing (IOException)
or returns error output. This allows callers to fall back gracefully
rather than crashing when neither Docker nor Podman is installed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 79232da commit 3b3c81f
2 files changed
Lines changed: 12 additions & 6 deletions
File tree
- src
- main/java/io/github/guacsec/trustifyda/image
- test/java/io/github/guacsec/trustifyda/image
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
285 | 293 | | |
286 | 294 | | |
287 | | - | |
| 295 | + | |
288 | 296 | | |
289 | 297 | | |
290 | 298 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
549 | 548 | | |
550 | 549 | | |
551 | 550 | | |
552 | | - | |
553 | | - | |
554 | | - | |
| 551 | + | |
| 552 | + | |
555 | 553 | | |
556 | 554 | | |
557 | 555 | | |
| |||
0 commit comments