Commit 947b176
authored
fix: pin platform: linux/amd64 for hasadna-published images (#13)
All ghcr.io/hasadna/* images are only published for linux/amd64 (no
arm64 manifest). On arm64 hosts (e.g. Apple Silicon) `docker-compose
pull stride-db-init` fails with "no matching manifest for
linux/arm64/v8 in the manifest list entries", since Docker refuses to
resolve a platform for a multi-arch manifest list with no matching
entry, unlike single-arch images where it just warns and emulates.
Pin platform: linux/amd64 via a shared YAML anchor on each service
using a ghcr.io/hasadna image, so this works out of the box for any
user regardless of host architecture - no DOCKER_DEFAULT_PLATFORM env
var needed. postgres/redis are left untouched since they're already
genuinely multi-arch and would otherwise be forced into unnecessary
emulation.
Verified: removed all cached images and DOCKER_DEFAULT_PLATFORM, then
confirmed `docker-compose pull stride-db-init` succeeds using only
this compose-file change.1 parent 328e5c8 commit 947b176
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
3 | 13 | | |
4 | 14 | | |
5 | 15 | | |
| 16 | + | |
6 | 17 | | |
7 | 18 | | |
8 | 19 | | |
| |||
28 | 39 | | |
29 | 40 | | |
30 | 41 | | |
| 42 | + | |
31 | 43 | | |
32 | 44 | | |
33 | 45 | | |
| |||
36 | 48 | | |
37 | 49 | | |
38 | 50 | | |
| 51 | + | |
39 | 52 | | |
40 | 53 | | |
41 | 54 | | |
| |||
47 | 60 | | |
48 | 61 | | |
49 | 62 | | |
| 63 | + | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
| |||
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
| 80 | + | |
66 | 81 | | |
67 | 82 | | |
68 | 83 | | |
| |||
72 | 87 | | |
73 | 88 | | |
74 | 89 | | |
| 90 | + | |
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
| |||
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
| 103 | + | |
87 | 104 | | |
88 | 105 | | |
89 | 106 | | |
| |||
97 | 114 | | |
98 | 115 | | |
99 | 116 | | |
| 117 | + | |
100 | 118 | | |
101 | 119 | | |
102 | 120 | | |
| |||
117 | 135 | | |
118 | 136 | | |
119 | 137 | | |
| 138 | + | |
120 | 139 | | |
121 | 140 | | |
122 | 141 | | |
| |||
133 | 152 | | |
134 | 153 | | |
135 | 154 | | |
| 155 | + | |
136 | 156 | | |
137 | 157 | | |
138 | 158 | | |
| |||
0 commit comments