Docker: OpenWrt run docker-ce got Error log

Version: OpenWrt SNAPSHOT, r11526-f84d6d2 x86_64

level=warning msg="Your kernel does not support cgroup blkio weight"
level=warning msg="Your kernel does not support cgroup blkio weight_device"

Seems you use a kernel config that is not compatible with docker.
You can check and try fix issues this way, in your dev/sdk openwrt build directory.

wget https://github.com/moby/moby/raw/master/contrib/check-config.sh
chmod +x check-config.sh
./check-config.sh .config

Basically you need to hand your kernel config to the script.

This will list what features kernel config options are missing, you need a 64bit target anyway or docker wont work. I'm not sure if the 64bit targets already have all features enabled by default.

1 Like

What are your contents of /etc/docker/daemon.conf?
Looks like your docker daemon does expect a btrfs volume in /opt/docker

1 Like