Commit 45677ae
committed
Mount /var/lib/docker on a docker volume for DinD
Nested overlay-on-overlay fails when /var/lib/docker lives on the
workspace's writable layer (buildkit cache mount: redirect_dir=off,
invalid argument). The standard docker:dind image avoids this by
declaring VOLUME /var/lib/docker so the path lives on a real filesystem.
Resurrect the docker_data volume (per-workspace, named
coder-<id>-docker-data) and mount it at /var/lib/docker. Inner dockerd
now has a non-overlay filesystem underneath. docker-prune.service still
runs on shutdown to keep the volume from accumulating image cache.1 parent d316619 commit 45677ae
1 file changed
Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
451 | 463 | | |
452 | 464 | | |
453 | 465 | | |
| |||
549 | 561 | | |
550 | 562 | | |
551 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
552 | 570 | | |
553 | 571 | | |
554 | 572 | | |
| |||
0 commit comments