mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-10 12:47:04 +00:00
The per-distro DNS Docker-in-Docker container runs on an overlay rootfs, so
the inner daemon's default overlayfs snapshotter fails to mount overlay on
overlay ("invalid argument") and docker compose up never brings coredns and
infinito up. Install fuse-overlayfs and write /etc/docker/daemon.json with
storage-driver fuse-overlayfs plus containerd-snapshotter disabled before
starting docker, mirroring the swarm node daemon.json that already runs this
way in CI.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
635 B
Bash
Executable File
19 lines
635 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if command -v pacman >/dev/null 2>&1; then
|
|
pacman -Sy --noconfirm --needed docker bind fuse-overlayfs
|
|
elif command -v apt-get >/dev/null 2>&1; then
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends docker-ce containerd.io dnsutils fuse-overlayfs
|
|
elif command -v dnf >/dev/null 2>&1; then
|
|
dnf -y install docker-ce containerd.io bind-utils fuse-overlayfs
|
|
elif command -v yum >/dev/null 2>&1; then
|
|
yum -y install docker-ce containerd.io bind-utils fuse-overlayfs
|
|
else
|
|
echo "no supported package manager for docker daemon install" >&2
|
|
exit 1
|
|
fi
|