Commit e157bb6
authored
fix: Skip platform-specific digest resolution with --pull-policy never (#2498)
* fix: Skip platform-specific digest resolution with --pull-policy never
When using --pull-policy never, pack now skips the platform-specific
digest resolution that requires network access to fetch the manifest list.
Instead, it uses the image name directly from the daemon.
This fix addresses issue #2496 where builds fail when using --pull-policy
never because pack cannot resolve the platform-specific digest of the
lifecycle image without network access.
The trade-off is that users may encounter containerd storage issues if
Docker is configured to use containerd storage. In such cases, users
should manually pull the platform-specific digest or use a different
pull policy.
Related to PR #2467 which introduced platform-specific digest resolution
to fix containerd storage issues.
Fixes #2496
Signed-off-by: Juan Bustamante <[email protected]>
* test: Use daemon OS instead of runtime OS in PullNever test
This fixes test failures on Windows runners running Linux containers.
The test was using runtime.GOOS which returns 'windows' on Windows hosts,
but the Docker daemon may be running Linux containers. Now we use the
daemon's actual OS type queried via docker.Info().
Signed-off-by: Juan Bustamante <[email protected]>
---------
Signed-off-by: Juan Bustamante <[email protected]>1 parent 3a89ee8 commit e157bb6
2 files changed
+54
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
260 | 271 | | |
261 | 272 | | |
262 | 273 | | |
| |||
275 | 286 | | |
276 | 287 | | |
277 | 288 | | |
278 | | - | |
279 | 289 | | |
280 | 290 | | |
281 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
735 | 778 | | |
736 | 779 | | |
737 | 780 | | |
| |||
0 commit comments