New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#2429 - Container Support Enabled by Default for X86 builds #7290
Comments
Hauke: In master a lot of these options are activated, see: Is this sufficient for you? |
najdanovicivan: I've tried running the dockerd on latest snapshot build and here is what I got WARN[2019-08-16T10:08:27.908909643Z] Your kernel does not support swap memory limit I suppose it's due to some of those flags missing KERNEL_BLK_DEV_BSG=y Can those be added as well for !SMALL_FLASH ? |
najdanovicivan: I've used the prebuild docker binaries from https://download.docker.com/linux/static/stable/x86_64/ to test I also tried to use https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh to check config but the build was missing configs module so I've transfered the configs.ko from SDK and loaded the module. After that I was able to run the script and here is what I got
info: reading kernel config from /proc/config.gz ...
So the flash that should also be enabled for !SMAL_FLASH Are
I'have attached the ouput of check config script |
najdanovicivan: Got it working. I was actually missing the cgroupfs-mount package So with snapshot build there is already a working docker setup using docker-ce package |
najdanovicivan:
Hi, Will it be possible to make Release build for 19.07 for X86 and X86_64 have Kernel compiled with full support for LXC/Docker. The idea is to have kernel only for x86 based build compiled with support so that all of use who want to use containers on the router don't have to recompile the kernel and be able to use kmod packages from the official repo.
Here are the kernel modules which should be included.
CONFIG_KERNEL_AIO=y
CONFIG_KERNEL_BLK_CGROUP=y
CONFIG_KERNEL_BLK_DEV_BSG=y
CONFIG_KERNEL_BLK_DEV_THROTTLING=y
CONFIG_KERNEL_BLK_DEV_THROTTLING_LOW=y
CONFIG_KERNEL_CFQ_GROUP_IOSCHED=y
CONFIG_KERNEL_CGROUPS=y
CONFIG_KERNEL_CGROUP_CPUACCT=y
CONFIG_KERNEL_CGROUP_DEVICE=y
CONFIG_KERNEL_CGROUP_FREEZER=y
CONFIG_KERNEL_CGROUP_PERF=y
CONFIG_KERNEL_CGROUP_PIDS=y
CONFIG_KERNEL_CGROUP_SCHED=y
CONFIG_KERNEL_CPUSETS=y
CONFIG_KERNEL_DEVPTS_MULTIPLE_INSTANCES=y
CONFIG_KERNEL_DEVTMPFS=y
CONFIG_KERNEL_DEVTMPFS_MOUNT=y
CONFIG_KERNEL_DIRECT_IO=y
CONFIG_KERNEL_FANOTIFY=y
CONFIG_KERNEL_FHANDLE=y
CONFIG_KERNEL_FREEZER=y
CONFIG_KERNEL_IPC_NS=y
CONFIG_KERNEL_LXC_MISC=y
CONFIG_KERNEL_MEMCG=y
CONFIG_KERNEL_MEMCG_KMEM=y
CONFIG_KERNEL_MEMCG_SWAP=y
CONFIG_KERNEL_MEMCG_SWAP_ENABLED=y
CONFIG_KERNEL_MM_OWNER=y
CONFIG_KERNEL_NAMESPACES=y
CONFIG_KERNEL_NETPRIO_CGROUP=y
CONFIG_KERNEL_NET_CLS_CGROUP=y
CONFIG_KERNEL_NET_NS=y
CONFIG_KERNEL_PERF_EVENTS=y
CONFIG_KERNEL_PID_NS=y
CONFIG_KERNEL_POSIX_MQUEUE=y
CONFIG_KERNEL_PROC_PID_CPUSET=y
CONFIG_KERNEL_RESOURCE_COUNTERS=y
CONFIG_KERNEL_USER_NS=y
CONFIG_KERNEL_UTS_NS=y
I've already tested building docked from this feed https://gitlab.com/mcbridematt/openwrt-container-feed with custom build OpenWrt images. But if any additional kmod package is need you'll have to compile it as well. Additionally there is a great guide (in Russian) https://habr.com/ru/post/341370/ on how to use LXC on OpenWrt
I completely understand the reason for not having these kernel modules on consumer router devices due to storage space limitation but most of users that use X86 for the router have a lot more disk space available.
Personaly I'm using APU3 Board with 64GB SSD to run OpenWrt and I want to use containers to run HomeAssistant on it and also as a PHP developer I can use Docker to run my Development server directly on the router so that I can easily switch between working on desktop and laptop.
The text was updated successfully, but these errors were encountered: