Docker over Linux (Linux Deploy) on top of Android (Lineage)

Post Reply
mad_ady
Posts: 9067
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 596 times
Been thanked: 578 times
Contact:

Docker over Linux (Linux Deploy) on top of Android (Lineage)

Post by mad_ady »

I'm trying to get Docker running on top of Linux (Ubuntu 18.04 via Linux Deploy) that runs on top of voodik's Lineage 17. The Android part works as a Kodi player, music player, chromecast, while the Linux side runs some periodic scripts. The problem is - N2 has so much power that it's a shame it's not being used at its full potential. So, I'm trying to get docker running. The base information about running linux on Android is here (the kernel compile steps have changed a bit): https://magazine.odroid.com/article/run ... r-android/

I have a custom kernel, based on voodik's kernel with this configuration (that enables the bits necessary for docker):
http://paste.ubuntu.com/p/TbXrX4yWHN/

I'm also using this guide (but on linux) to install docker (the official one doesn't work and complains because of different cgroup structure): https://gist.github.com/arno01/ebf570af ... da4f63bc9c

Code: Select all

sudo su -
cd /opt
wget -q https://golang.org/dl/go1.15.6.linux-arm64.tar.gz
tar zxvf go1.15.6.linux-arm64.tar.gz
ln -s /opt/go/bin/go /usr/local/bin/go
go version
export GOROOT=/opt/go

go get github.com/docker/cli/cmd/docker
~/go/bin/docker -v
go get -u -d github.com/docker/docker/cmd/dockerd

rm -vf ~/go/src/github.com/docker/docker/daemon/graphdriver/register/register_btrfs.go
rm -vf ~/go/src/github.com/docker/docker/daemon/graphdriver/register/register_devicemapper.go

cd ~/go/src/github.com/docker/docker/cmd/dockerd
go install

go get -u -d github.com/containerd/containerd/cmd/containerd
rm -vf ~/go/src/github.com/containerd/containerd/cmd/containerd/builtins_btrfs_linux.go
cd ~/go/src/github.com/containerd/containerd/cmd/containerd
go install


cd ~/go/src/github.com/docker/docker/contrib
./check-config.sh


cd ~
~/go/bin/containerd &
~/go/bin/dockerd --iptables=false &
~/go/bin/docker run hello-world
Sadly, the container fails to start with this error:

Code: Select all

docker: Error response from daemon: runtime "io.containerd.runc.v2" binary not installed "containerd-shim-runc-v2": file does not exist: unknown.
ERRO[0000] error waiting for container: context canceled 
Anyway - there are some limitations - most likely networking will have to be host-based (since there is no iptables support and network namespaces may not work), no cpu cgroups (probably not an issue).
So probably I'm missing something in my environment... I'll keep you posted...
These users thanked the author mad_ady for the post:
tobetter (Tue Dec 29, 2020 8:53 pm)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 0 guests