Commit ba55802
committed
fix(docker): apply fixed macs through network API
- Switch the Docker network restore path from endpoint driver options to the Docker network connect API when a fixed MAC is stored.
- Before, rc.docker passed com.docker.network.endpoint.macaddress through docker network connect --driver-opt.
- Docker 29.3.1 persisted that value in DriverOpts but still assigned a random endpoint MacAddress on macvlan networks.
- That meant containers could reboot with random MACs even though MyMAC was stored in the template.
- Now, fixed-MAC reconnects send EndpointConfig.MacAddress, with IPv4 and IPv6 addresses preserved through IPAMConfig, matching the working docker run endpoint form.1 parent bab527f commit ba55802
1 file changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
| 249 | + | |
249 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
250 | 256 | | |
251 | 257 | | |
252 | 258 | | |
| |||
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
| 276 | + | |
270 | 277 | | |
271 | 278 | | |
| 279 | + | |
272 | 280 | | |
273 | 281 | | |
274 | 282 | | |
275 | 283 | | |
276 | 284 | | |
277 | 285 | | |
278 | | - | |
279 | 286 | | |
280 | 287 | | |
281 | 288 | | |
| |||
288 | 295 | | |
289 | 296 | | |
290 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
291 | 314 | | |
292 | | - | |
| 315 | + | |
293 | 316 | | |
294 | 317 | | |
295 | 318 | | |
| |||
0 commit comments