2019年7月

There is a few problems with arch linux shiped docker.

  • only root user can access docker command
  • native overlay diff is off due to kernel settings

first question: only root user can access docker command

that`s duo to your current user is not belongs to docker group

fix:

sudo usermod -aG docker $USER

native overlay diff is off due to kernel settings

well, that`s a bit nasty, you need to turn off some kernel settings and recompile the kernel

you should turn the follow settings off in .config of your kernel source root folder

CONFIG_OVERLAY_FS_REDIRECT_DIR=n
CONFIG_OVERLAY_FS_METACOPY=n

if you are using arch linux, I recommand to use this modified linux-ck kernel

usage:

git clone --depth=1 https://github.com/bugparty/linux-ck-archlinux
cd linux-ck-archlinux
makepkg -s
makepkg -i