Saturday, 26th October 2024
Getting Docker on Arch Linux My old Gist is still relevant: https://gist.github.com/bartprokop/15b07ec2502c59cf8020b1541ad57d5c but be comfortable to switch to volumes for data persistence. pacman -S docker systemctl start docker.service docker info I will need genfstab - https://wiki.archlinux.org/title/Genfstab # mount root BTRFS volume and create Docker dedicated subvolume mkdir /mnt/sda2 mount /dev/sda2 /mnt/sda2 cd /mnt/sda2 btrfs subvolume create svols/docker pacman -S arch-install-scripts mkdir /var/lib/docker mount -o subvol=/svols/docker /dev/sda2 /var/lib/docker genfstab / /dev/sda2 /var/lib/docker btrfs rw,noatime,ssd,discard=async,space_cache=v2,subvol=/svols/docker 0 0 # Reboot and ensure all filesystems are mounted as expected....