Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it run docker? #48

Open
ppvan opened this issue May 12, 2024 · 1 comment
Open

Can it run docker? #48

ppvan opened this issue May 12, 2024 · 1 comment

Comments

@ppvan
Copy link

ppvan commented May 12, 2024

Folloing #29, I'm be able to setup openrc in my debian chroot.
Everything seems to work fine, except docker, my best guess is because docker play with the kernel.
Since my knowledge about android very limited, I'm not sure getting docker running even possible?
I plan to use my broken phone as a home server so docker is a very essential part.
Thank you in advance.

When I install docker-ce it's has some warning:

Setting up docker-ce (5:26.1.2-1~debian.11~bullseye) ...
insserv: warning: script 'cgroups' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `cgroups'
insserv: Default-Stop  undefined, assuming empty stop runlevel(s) for script `cgroups'
Running in chroot, ignoring request.

When I try to start docker with openrc, it refuse to start, here is docker log at /var/log/docker.log. The problem seems to be ccgroup not properly setup as above.

time="2024-05-12T05:13:36.053842159Z" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
time="2024-05-12T05:13:36.053927159Z" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
time="2024-05-12T05:13:36.054008201Z" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
time="2024-05-12T05:13:36.054422680Z" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
time="2024-05-12T05:13:36.054509243Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
time="2024-05-12T05:13:36.054567576Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
time="2024-05-12T05:13:36.054599712Z" level=info msg="containerd successfully booted in 0.034759s"
time="2024-05-12T05:13:37.041794138Z" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
time="2024-05-12T05:13:37.041828774Z" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
failed to start daemon: Devices cgroup isn't mounted
@Efreak
Copy link

Efreak commented Jan 27, 2025

See https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27#232-dockerd for where to mount cgroups. Also, you might consider running docker from termux instead, as it's apparently supported (I've never done so)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants