Other OS

FYI: Updated kernel needed to use actual docker ( > 1.3)

2 2967
7o9  
Edited by 7o9 at Thu Feb 12, 2015 01:28

Hi,
i update docker from 1.3 to v1.5 (and also back to 1.4), but can't start any container, i always get the same basic error.
" setup mount namespace mount system mounting mqueue into /var/lib/docker/devicemapper/mnt/760238c8bbe58401585d260d619f1b95bc3d5ad892c0f1fe60724dbfaee59e79/rootfs/dev/mqueue no such device""

After some hard time (lxc-checkconfig does not check this!) , i found that actual docker versions now need a kernel that is compiled with "CONFIG_POSIX_MQUEUE=y" - which is not the case for the one in the lemaker-archlinux download.

After compiling the kernel myself - with the above config -  docker is working again.

You can easy check:

# zcat /proc/config.gz | grep MQ
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y

Update:
Better way to check for more necessary is running this:
  1. curl -L https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh | CONFIG=/path/to/.config /bin/bash
Copy the Code
Output:
  1. info: reading kernel config from /proc/config.gz ...

  2. Generally Necessary:
  3. - cgroup hierarchy: properly mounted [/sys/fs/cgroup]
  4. - CONFIG_NAMESPACES: enabled
  5. - CONFIG_NET_NS: enabled
  6. - CONFIG_PID_NS: enabled
  7. - CONFIG_IPC_NS: enabled
  8. - CONFIG_UTS_NS: enabled
  9. - CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled
  10. - CONFIG_CGROUPS: enabled
  11. - CONFIG_CGROUP_CPUACCT: enabled
  12. - CONFIG_CGROUP_DEVICE: enabled
  13. - CONFIG_CGROUP_FREEZER: enabled
  14. - CONFIG_CGROUP_SCHED: enabled
  15. - CONFIG_MACVLAN: enabled
  16. - CONFIG_VETH: enabled
  17. - CONFIG_BRIDGE: enabled
  18. - CONFIG_NF_NAT_IPV4: missing
  19. - CONFIG_IP_NF_FILTER: enabled
  20. - CONFIG_IP_NF_TARGET_MASQUERADE: enabled
  21. - CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled
  22. - CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled
  23. - CONFIG_NF_NAT: enabled
  24. - CONFIG_NF_NAT_NEEDED: enabled
  25. - CONFIG_POSIX_MQUEUE: enabled

  26. Optional Features:
  27. - CONFIG_MEMCG_SWAP: missing
  28. - CONFIG_RESOURCE_COUNTERS: enabled
  29. - CONFIG_CGROUP_PERF: enabled
  30. - Storage Drivers:
  31.   - "aufs":
  32.     - CONFIG_AUFS_FS: missing
  33.     - CONFIG_EXT4_FS_POSIX_ACL: enabled
  34.     - CONFIG_EXT4_FS_SECURITY: enabled
  35.   - "btrfs":
  36.     - CONFIG_BTRFS_FS: missing
  37.   - "devicemapper":
  38.     - CONFIG_BLK_DEV_DM: enabled
  39.     - CONFIG_DM_THIN_PROVISIONING: enabled
  40.     - CONFIG_EXT4_FS: enabled
  41.     - CONFIG_EXT4_FS_POSIX_ACL: enabled
  42.     - CONFIG_EXT4_FS_SECURITY: enabled
  43.   - "overlay":
  44.     - CONFIG_OVERLAY_FS: missing
Copy the Code
So, at least one more necessary flag is missing, CONFIG_NF_NAT_IPV4 - but this one seems not to be available in our kernel version?


@lemaker:
Would be nice to get this one fixed in the official download, and please update kernel to at least 3.8, lower versions might be unstable running docker.
This version warning message is posted every time we start actual docker on our 3.4.x kernel!

Bye, 7o9
I encountered the same issue. Downloaded the image, installed docker but it doesn't run for the same reason. Would you point me instructions to build the kernel? or would you suggest me to use other image for the bananapi?

The kernel above 3.4 is not all the function ones, such as HDMI can not work. So now keep at kernel 3.4 maybe the best choice for a full functions.

You have to log in before you can reply Login | Sign Up

Points Rules