Is docker available on Luckfox Lyra?

  • Hello, the use of docker generally requires the kernel to open iptable NAT bridge cgroup and other configurations, here is a copy of Luckfox-pico to add docker support configuration as a reference, note that Luckfox-pico uses kernel-5.10 and Luckfox-Lyra uses kernel-6.1, some configuration items are different

    Code: Select all

    CONFIG_POSIX_MQUEUE=y
    
    CONFIG_CGROUPS=y
    CONFIG_MEMCG=y
    CONFIG_BLK_CGROUP=y
    CONFIG_CGROUP_SCHED=y
    CONFIG_CFS_BANDWIDTH=y
    CONFIG_RT_GROUP_SCHED=y
    CONFIG_CGROUP_PIDS=y
    CONFIG_CGROUP_RDMA=y
    CONFIG_CGROUP_FREEZER=y
    CONFIG_CGROUP_DEVICE=y
    CONFIG_CGROUP_CPUACCT=y
    CONFIG_CGROUP_DEBUG=y
    CONFIG_NAMESPACES=y
    CONFIG_USER_NS=y
    
    CONFIG_NETFILTER=y
    CONFIG_NF_CONNTRACK=y
    CONFIG_NF_TABLES=y
    CONFIG_NFT_MASQ=y
    CONFIG_NFT_REDIR=y
    CONFIG_NFT_NAT=y
    CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
    CONFIG_NETFILTER_XT_MATCH_CGROUP=y
    CONFIG_NETFILTER_XT_MATCH_COMMENT=y
    CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
    CONFIG_NF_TABLES_IPV4=y
    CONFIG_IP_NF_IPTABLES=y
    CONFIG_IP_NF_FILTER=y
    CONFIG_IP_NF_NAT=y
    CONFIG_IP_NF_TARGET_MASQUERADE=y
    CONFIG_IP6_NF_IPTABLES=m
    CONFIG_NF_TABLES_BRIDGE=m
    CONFIG_BRIDGE_NF_EBTABLES=m
    CONFIG_BRIDGE=m
    CONFIG_NET_SCHED=y
    CONFIG_NET_CLS_CGROUP=y
    CONFIG_CGROUP_NET_PRIO=y
    
    CONFIG_VETH=y
    CONFIG_OVERLAY_FS=y
    
  • Thanks for the reply. Do I need to rebuild the kernel?
  • Yes, you need to recompile the kernel
  • Crocodile wrote: 2025-04-17 1:03 Yes, you need to recompile the kernel
    Does anyone know what has changed in the Ubuntu image version 250417? Is there a page that explains the release version?
  • Crocodile wrote: 2025-04-17 1:03 Yes, you need to recompile the kernel
    Could you please build a version of Ubuntu that supports docker and release it officially?
  • The new version only adds support for luckfox-config
    We can't meet every customer's customization needs for the system, thank you for your understanding
  • I compiled Ubuntu 24.04.3 from Luckfox Lyra Ultra W and now Docker works perfectly.
    Download Ubuntu 24.04.3 with Docker support for the Luckfox Lyra Ultra W - https://disk.yandex.ru/d/PlIW_k9Ma3i5aA

    Code: Select all

    Username: root  
    Password: root
    sudo apt update
    passwd
    sudo adduser ++++ 
    sudo usermod -aG sudo ++++
    sudo apt install apt-utils iptables bluez cifs-utils wget curl dbus mc git curl
    curl -fsSL get.docker.com | sh
    Setting up WiFi via USB connection of the board to the computer and launching the adb server - https://wiki.luckfox.com/Luckfox-Lyra/Login

    Code: Select all

    adb shell "cd /home/lyra/aic800/ && make install; reboot"
    
    #test
    adb shell nmcli dev wifi list
    
    #connect
    nmtui
    
    Last edited by _Malay_ on 2025-12-11 2:59, edited 1 time in total.
  • Hello!
    I know it's an old topic, but where exactly do I need to put these configs before building the kernel
    Crocodile wrote: 2025-04-16 7:40 Hello, the use of docker generally requires the kernel to open iptable NAT bridge cgroup and other configurations, here is a copy of Luckfox-pico to add docker support configuration as a reference, note that Luckfox-pico uses kernel-5.10 and Luckfox-Lyra uses kernel-6.1, some configuration items are different

    Code: Select all

    CONFIG_POSIX_MQUEUE=y
    
    CONFIG_CGROUPS=y
    CONFIG_MEMCG=y
    CONFIG_BLK_CGROUP=y
    CONFIG_CGROUP_SCHED=y
    CONFIG_CFS_BANDWIDTH=y
    CONFIG_RT_GROUP_SCHED=y
    CONFIG_CGROUP_PIDS=y
    CONFIG_CGROUP_RDMA=y
    CONFIG_CGROUP_FREEZER=y
    CONFIG_CGROUP_DEVICE=y
    CONFIG_CGROUP_CPUACCT=y
    CONFIG_CGROUP_DEBUG=y
    CONFIG_NAMESPACES=y
    CONFIG_USER_NS=y
    
    CONFIG_NETFILTER=y
    CONFIG_NF_CONNTRACK=y
    CONFIG_NF_TABLES=y
    CONFIG_NFT_MASQ=y
    CONFIG_NFT_REDIR=y
    CONFIG_NFT_NAT=y
    CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
    CONFIG_NETFILTER_XT_MATCH_CGROUP=y
    CONFIG_NETFILTER_XT_MATCH_COMMENT=y
    CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
    CONFIG_NF_TABLES_IPV4=y
    CONFIG_IP_NF_IPTABLES=y
    CONFIG_IP_NF_FILTER=y
    CONFIG_IP_NF_NAT=y
    CONFIG_IP_NF_TARGET_MASQUERADE=y
    CONFIG_IP6_NF_IPTABLES=m
    CONFIG_NF_TABLES_BRIDGE=m
    CONFIG_BRIDGE_NF_EBTABLES=m
    CONFIG_BRIDGE=m
    CONFIG_NET_SCHED=y
    CONFIG_NET_CLS_CGROUP=y
    CONFIG_CGROUP_NET_PRIO=y
    
    CONFIG_VETH=y
    CONFIG_OVERLAY_FS=y
    
  • It is recommended to make the configuration changes directly in ./build.sh kernelconfig rather than modifying the defconfig file directly, in order to avoid configuration conflicts or missing dependencies that could lead to compilation errors.