Docker on Odroid C2?

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Docker on Odroid C2?

Postby ivanthesquid » Wed Jun 22, 2016 1:22 am

Hey all,

I'd really like to run Docker containers on my C2s running alarm. When I use systemctl to start docker, the command hangs at the command prompt. I'll ctrl-c to get the prompt back.

doing 'sudo systemctl status docker', I get:

$this->bbcode_second_pass_code('', '
* docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: activating (start) since Tue 2016-06-21 15:23:02 MDT; 3h 57min ago
Docs: https://docs.docker.com
Main PID: 221 (docker)
Memory: 34.9M
CPU: 481ms
CGroup: /system.slice/docker.service
`-221 /usr/bin/docker daemon -H fd://

Jun 21 15:23:02 quill00 systemd[1]: Starting Docker Application Container Engine...
Jun 21 15:23:03 quill00 docker[221]: time="2016-06-21T15:23:03.323056000-06:00" level=info msg="New containerd process, pid: 232\n"
Jun 21 15:23:03 quill00 docker[221]: time="2016-06-21T15:23:03-06:00" level=fatal msg="containerd: epoll wait" error="function not implemented"
Jun 21 15:23:09 quill00 docker[221]: time="2016-06-21T15:23:09.379351000-06:00" level=info msg="New containerd process, pid: 244\n"
Jun 21 15:23:09 quill00 docker[221]: time="2016-06-21T15:23:09-06:00" level=fatal msg="containerd: epoll wait" error="function not implemented"
')

With dmesg, I see this sort of record which seems to reference containerd failing:

$this->bbcode_second_pass_code('', '
[ 13.062030] docker-containe[250]: syscall 1069
[ 13.062067] Code: f94023e4 f94027e5 f9400fe8 d4000001 (b13ffc1f)
[ 13.067205] CPU: 2 PID: 250 Comm: docker-containe Not tainted 3.14.65-13-ARCH #1
[ 13.074300] task: ffffffc07b5d6c00 ti: ffffffc07b0b4000 task.ti: ffffffc07b0b4000
[ 13.081637] PC is at 0x4ed238
[ 13.084703] LR is at 0x4ed218
[ 13.087497] pc : [<00000000004ed238>] lr : [<00000000004ed218>] pstate: 60000000
[ 13.094944] sp : 00000048200337c0
[ 13.098105] x29: 0000007f6fffe960 x28: 00000048201b6180
[ 13.103366] x27: 0000000000ded118 x26: 0000000000000000
[ 13.108627] x25: 0000007f6ffff2b0 x24: 0000000000882428
[ 13.113889] x23: 0000007f7ef4c000 x22: 0000007f7dd1a66f
[ 13.119149] x21: 0000000000000000 x20: 000000000046d880
[ 13.124411] x19: 000000000043be10 x18: 0000000000030e41
[ 13.129672] x17: 0000007f7ee1dee0 x16: 0000004820033eb0
[ 13.134933] x15: 0000000000000180 x14: 0000000000000000
[ 13.140194] x13: 0000007f7dd1a830 x12: 0000007f6ffff1f0
[ 13.145456] x11: 00000000003d0f00 x10: 0000007f7ef25f78
[ 13.150717] x9 : 0000004820033fa0 x8 : 000000000000042d
[ 13.155978] x7 : 00000000004ed218 x6 : 00000048200337c0
[ 13.161239] x5 : 0000000000000000 x4 : 0000000000000000
[ 13.166501] x3 : ffffffffffffffff x2 : 0000000000000080
[ 13.171762] x1 : 00000048200338b8 x0 : 0000000000000003
')

Any thoughts/clues/hopes about getting Docker containers running in alarm on Odroid C2?

Thanks,
Shon
ivanthesquid
 
Posts: 2
Joined: Wed Jun 22, 2016 1:16 am

Re: Docker on Odroid C2?

Postby crvgkb » Thu Jun 30, 2016 1:15 pm

You are getting this error because of the version of containerd running with docker 1.11.*.
See here: https://github.com/docker/docker/issues/22950

I have managed to get Docker to boot using the master branch.

You can find relevant PKGBUILD files in the following repo:
https://github.com/archlinuxarm/PKGBUILDs/tree/master/community

By modifying them you can build docker and containerd from master.

Despite my success in building docker and starting the daemon, I have not been able to start a container yet as I am getting consistently the following error: "docker: Error response from daemon: shim error: open pid: no such file or directory".

For more info see here: https://github.com/docker/docker/issues/23467
crvgkb
 
Posts: 2
Joined: Thu Jun 30, 2016 1:07 pm

Re: Docker on Odroid C2?

Postby crvgkb » Mon Jul 04, 2016 8:41 am

Using yaourt you can install the latest dev branch of Docker, containerd and runc which results in a functional installation of docker.

$this->bbcode_second_pass_code('', 'yaourt -S docker-git')
crvgkb
 
Posts: 2
Joined: Thu Jun 30, 2016 1:07 pm

Re: Docker on Odroid C2?

Postby ivanthesquid » Sun Jul 10, 2016 2:05 am

Thanks for that tip, crvgkb. I was able to get docker running on my C2 after getting yaourt up-and-running.
ivanthesquid
 
Posts: 2
Joined: Wed Jun 22, 2016 1:16 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 10 guests