Page 1 of 1

overlay2 on docker

Posted: Mon Feb 03, 2025 10:23 pm
by fkiller
FriendlyWRT 22.03.5 with Docker on NanoPi R6S
Docker works fine but it only supports vfs fs, which generates oversized chucks of files.
When I pull 300~500MB docker, vfs folder size is over 21G.
Best solution is to use overlay2 fs on docker but it seems not supported. I manually forced to put those option on daemon.json then docker can't start. Anyone has any idea how to solve this? Pruning doesn't make on vfs folder optimized at all.

I'm looking for solution either enabling overlay2 fs on docker or changing MMC fs to ext4/xfs.

Re: overlay2 on docker

Posted: Mon Jul 14, 2025 4:49 am
by separatefrequent
fkiller wrote:
FriendlyWRT 22.03.5 with Docker on NanoPi R6S
Docker works fine but it only supports vfs fs, which generates oversized chucks of files.
When I pull 300~500MB docker level devil, vfs folder size is over 21G.
Best solution is to use overlay2 fs on docker but it seems not supported. I manually forced to put those option on daemon.json then docker can't start. Anyone has any idea how to solve this? Pruning doesn't make on vfs folder optimized at all.

I'm looking for solution either enabling overlay2 fs on docker or changing MMC fs to ext4/xfs.



You should enable `overlay2` by ensuring kernel support. The `overlay2` storage driver relies on the Linux kernel's OverlayFS module. If this module is not compiled into your FriendlyWRT kernel or is not available as a loadable module, Docker will not be able to use it.