This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Docker Support
#1
With the original kernel i'm unable to run docker. Ideally it would be beneficial to have docker support in the kernel to make it easier to use the board for building other armhf stuff inside containers.

I've tried editing the kernel .config before building without success.

I've managed to slim down the image so as not to have any graphical interface, but a better solution would be to have Alpine Linux running or may even Rancher OS.
Reply
#2
I've successfully built a kernel that passes all the docker config checks and docker starts but i cannot start a container. It complains about devicemapper, maybe if i recompile the kernel and include AUFS support it would be better solution. I have attached the zImage kernel if anyone wants this.

https://www.dropbox.com/s/86j7pr623hgtri...e.zip?dl=0

Code:
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled
- CONFIG_NF_NAT_IPV4: enabled
- CONFIG_IP_NF_FILTER: enabled
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled
- CONFIG_IP_NF_NAT: enabled
- CONFIG_NF_NAT: enabled
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled
- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: enabled
- CONFIG_MEMCG_KMEM: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: enabled
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: enabled
- CONFIG_IP_VS: enabled
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_RR: enabled
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
 - "overlay":
   - CONFIG_VXLAN: enabled
     Optional (for encrypted networks):
     - CONFIG_CRYPTO: enabled
     - CONFIG_CRYPTO_AEAD: enabled
     - CONFIG_CRYPTO_GCM: enabled
     - CONFIG_CRYPTO_SEQIV: enabled
     - CONFIG_CRYPTO_GHASH: enabled
     - CONFIG_XFRM: enabled
     - CONFIG_XFRM_USER: enabled
     - CONFIG_XFRM_ALGO: enabled
     - CONFIG_INET_ESP: enabled
     - CONFIG_INET_XFRM_MODE_TRANSPORT: enabled
 - "ipvlan":
   - CONFIG_IPVLAN: enabled
 - "macvlan":
   - CONFIG_MACVLAN: enabled
   - CONFIG_DUMMY: missing
 - "ftp,tftp client in container":
   - CONFIG_NF_NAT_FTP: missing
   - CONFIG_NF_CONNTRACK_FTP: missing
   - CONFIG_NF_NAT_TFTP: missing
   - CONFIG_NF_CONNTRACK_TFTP: missing
- Storage Drivers:
- "aufs":
 - CONFIG_AUFS_FS: missing
- "btrfs":
 - CONFIG_BTRFS_FS: enabled
 - CONFIG_BTRFS_FS_POSIX_ACL: enabled
- "devicemapper":
 - CONFIG_BLK_DEV_DM: enabled
 - CONFIG_DM_THIN_PROVISIONING: enabled
- "overlay":
 - CONFIG_OVERLAY_FS: enabled
- "zfs":
 - /dev/zfs: missing
 - zfs command: missing
 - zpool command: missing

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000
Reply
#3
Docker should work on Armbian out of the box.
Reply
#4
(03-25-2017, 06:32 AM)igorpec Wrote: Docker should work on Armbian out of the box.

Sadly it appears not to. Anyone had any luck getting Docker to work at all?
Reply
#5
(03-18-2017, 05:14 PM)dominictaylor Wrote: I've successfully built a kernel that passes all the docker config checks and docker starts but i cannot start a container. It complains about devicemapper, maybe if i recompile the kernel and include AUFS support it would be better solution. I have attached the zImage kernel if anyone wants this.

https://www.dropbox.com/s/86j7pr623hgtri...e.zip?dl=0

Code:
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled
- CONFIG_NF_NAT_IPV4: enabled
- CONFIG_IP_NF_FILTER: enabled
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled
- CONFIG_IP_NF_NAT: enabled
- CONFIG_NF_NAT: enabled
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled
- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: enabled
- CONFIG_MEMCG_KMEM: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: enabled
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: enabled
- CONFIG_IP_VS: enabled
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_RR: enabled
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
 - "overlay":
   - CONFIG_VXLAN: enabled
     Optional (for encrypted networks):
     - CONFIG_CRYPTO: enabled
     - CONFIG_CRYPTO_AEAD: enabled
     - CONFIG_CRYPTO_GCM: enabled
     - CONFIG_CRYPTO_SEQIV: enabled
     - CONFIG_CRYPTO_GHASH: enabled
     - CONFIG_XFRM: enabled
     - CONFIG_XFRM_USER: enabled
     - CONFIG_XFRM_ALGO: enabled
     - CONFIG_INET_ESP: enabled
     - CONFIG_INET_XFRM_MODE_TRANSPORT: enabled
 - "ipvlan":
   - CONFIG_IPVLAN: enabled
 - "macvlan":
   - CONFIG_MACVLAN: enabled
   - CONFIG_DUMMY: missing
 - "ftp,tftp client in container":
   - CONFIG_NF_NAT_FTP: missing
   - CONFIG_NF_CONNTRACK_FTP: missing
   - CONFIG_NF_NAT_TFTP: missing
   - CONFIG_NF_CONNTRACK_TFTP: missing
- Storage Drivers:
- "aufs":
 - CONFIG_AUFS_FS: missing
- "btrfs":
 - CONFIG_BTRFS_FS: enabled
 - CONFIG_BTRFS_FS_POSIX_ACL: enabled
- "devicemapper":
 - CONFIG_BLK_DEV_DM: enabled
 - CONFIG_DM_THIN_PROVISIONING: enabled
- "overlay":
 - CONFIG_OVERLAY_FS: enabled
- "zfs":
 - /dev/zfs: missing
 - zfs command: missing
 - zpool command: missing

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000

Please check "CONFIG_POSIX_MQUEUE" kernel config is enable

Install docker:
curl -sSL https://get.docker.com | sh

if you would like to use Docker as a non-root user, please use follow command to do (need reboot)
sudo usermod -aG docker linaro


Attached Files Thumbnail(s)
   
Reply
#6
Code:
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
-
CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled
- CONFIG_NF_NAT_IPV4: enabled
- CONFIG_IP_NF_FILTER: enabled
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_IP_NF_NAT: enabled
- CONFIG_NF_NAT: enabled
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: enabled
   (cgroup swap accounting is currently enabled)
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: enabled
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: enabled
- CONFIG_IP_VS: enabled
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_EXT3_FS: missing
- CONFIG_EXT3_FS_XATTR: missing
- CONFIG_EXT3_FS_POSIX_ACL: missing
- CONFIG_EXT3_FS_SECURITY: missing
   (enable these ext3 configs if you are using ext3 as backing filesystem)
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
 - "overlay":
   - CONFIG_VXLAN: enabled
     Optional (for encrypted networks):
     - CONFIG_CRYPTO: enabled
     - CONFIG_CRYPTO_AEAD: enabled
     - CONFIG_CRYPTO_GCM: enabled
     - CONFIG_CRYPTO_SEQIV: enabled
     - CONFIG_CRYPTO_GHASH: enabled
     - CONFIG_XFRM: enabled
     - CONFIG_XFRM_USER: enabled
     - CONFIG_XFRM_ALGO: enabled
     - CONFIG_INET_ESP: enabled
     - CONFIG_INET_XFRM_MODE_TRANSPORT: enabled
 - "ipvlan":
   - CONFIG_IPVLAN: enabled
 - "macvlan":
   - CONFIG_MACVLAN: enabled
   - CONFIG_DUMMY: enabled
 - "ftp,tftp client in container":
   - CONFIG_NF_NAT_FTP: enabled
   - CONFIG_NF_CONNTRACK_FTP: enabled
   - CONFIG_NF_NAT_TFTP: enabled
   - CONFIG_NF_CONNTRACK_TFTP: enabled
- Storage Drivers:
 - "aufs":
   - CONFIG_AUFS_FS: enabled (as module)
 - "btrfs":
   - CONFIG_BTRFS_FS: enabled
   - CONFIG_BTRFS_FS_POSIX_ACL: enabled
 - "devicemapper":
   - CONFIG_BLK_DEV_DM: enabled
   - CONFIG_DM_THIN_PROVISIONING: enabled
 - "overlay":
   - CONFIG_OVERLAY_FS: enabled
 - "zfs":
   - /dev/zfs: missing
   - zfs command: missing
   - zpool command: missing

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000

This is latest Armbianhttp://sprunge.us/PZNG
Reply
#7
(09-28-2017, 07:32 AM)alex3788 Wrote: Install docker:
curl -sSL ...get.docker.com | sh

Hi, I'm tring to install docker with this command and got an error: The repository '... download.docker.com/linux/ubuntu stretch Release' does not have a Release file. What am I missing? I replaced https with ... in post because I can't post links)
Reply
#8
(01-09-2019, 07:13 PM)samuraii Wrote:
(09-28-2017, 07:32 AM)alex3788 Wrote: Install docker:
curl -sSL ...get.docker.com | sh

Hi, I'm tring to install docker with this command and got an error: The repository '... download.docker.com/linux/ubuntu stretch Release' does not have a Release file. What am I missing? I replaced https with ... in post because I can't post links)

I just made a quick tests on armbain 

armbian-config -> software -> softy -> Docker

Works as expected.
Armbian. Lightweight Debian Stretch or Ubuntu Bionic for Tinker Board.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)