Docker in Docker inside alpine:3.10.3 image not working

Hello Everyone,

I’m new in docker, i’m using docker in codepipe line.

inside docker when i’m running this command
/usr/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2

It is not working facing below issue.
Error starting daemon: error initializing graphdriver: backing file system is unsupported for this graph driver

Please help me.

Thanks & Regards.

Hi

I THINK its because you’re running on a too old kernel version, what does “uname -a” give?

you can try and set storage-driver to btrfs,

Hello Martin,

Thanks for the response.
when i’m passing this : usr/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=btrfs
Error starting daemon: error initializing graphdriver: prerequisites for driver not satisfied (wrong filesystem?)

And my kernal version is :Linux 18eb02d3c408 5.10.47-linuxkit

Thanks

Docker is very old in alpine 3.10.3 so overlay2 was not supported. Even if it were supported in that version, it would not work without using a volume for the docker data dir so you have a supported “backing filesystem”
See Docker storage drivers | Docker Documentation.
In case of Alpine 3.10 there is also an other issue: Docker daemon running in Alpine container. Solved? | Proxmox Support Forum

So if you can, try a newer alpine version like 3.14, mount a volume for the docker data and you can use overlay2

docker run --rm -it --privileged --volume docker-data:/var/lib/docker alpine:3.14

btrfs would not work unless you have btrfs on your host.