-
Notifications
You must be signed in to change notification settings - Fork 34
What would be required to successfully install docker on Android (via Termux)? #7
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
Comments
Any additional info I can provide? Mobile Type: Xiaomi Redmi 4X
|
very interested too...would love to get docker installed on android! |
I've successfully installed docker 1.13 but just trying to get it to connect to the daemon (if possible) will report back. setup: One Plus 6 (Snapdragon 845 has built in hardware virtualization) edit |
One path forward is described here: |
@satmandu have you tested this? |
@davemackintosh I have been able to get alpine linux installed using that method on ChromeOS. Note that this is running it through qemu though. |
@satmandu and docker running? On an Android device? |
I had to modify the instructions slightly, but I do have docker running on android inside ChromeOS. |
I don't own a ChromeOS device but I think it works because they probably
have the required kernel modules compiled into them whereas most (all?)
Android phones and tablets do not. All modern processors support
virtualization but vendors don't bake the required modules into the kernels
and AFAIK no one has patched it right yet.
Best bet for us is an OTG powered Nano or similar and to network to it. 👎
…On Mon, 4 Mar 2019, 01:01 satmandu, ***@***.***> wrote:
I had to modify the instructions slightly, but I do have docker running on
android inside ChromeOS.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABXUge0oypyW5vhKGUTVjoSBJ4-XHmExks5vTHBQgaJpZM4UmRhu>
.
|
Note that there (I think) no virtualization kernel modules being used here. (That would really speed it up.) This is entirely through using qemu in user mode to run a virtual machine within which has docker running. Not the ideal setup in any case! |
I'm willing to try this (but I really think it won't work hahaha): https://medium.com/@abiosoft/docker-on-chromebook-b9679e491c06 |
I hate to Necro an old Post but I am trying to do this. DockerD needs /proc mounted to run. Is there a way to do this on a Linux VM running within Android? DockerD is installed I just can't seem to mount proc. Probably a sandbox limitation... Anyone know how to get around this? |
It works perfectly via qemu and alpine inside it . But quite slow on op5 and also take alote of battery powered. There is no way in termux nor even with chroot to other Linux untill now |
Linux kernel is missing most of namespaces and cgroups support in its standard configuration. It should be possible to use Docker on a custom kernel with all needed features enabled. |
Maybe one could have better luck with rootless Docker? See
https://medium.com/@tonistiigi/experimenting-with-rootless-docker-416c9ad8c0d6
…On Thu, Sep 19, 2019 at 2:00 AM ValdikSS ***@***.***> wrote:
Linux kernel is missing most of namespaces and cgroups support in its
standard configuration. It should be possible to use Docker on a custom
kernel with all needed features enabled.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7?email_source=notifications&email_token=AAZHR2NGEC24GUTEADA2PSDQKK6IXA5CNFSM4FEZDBXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7BZHQQ#issuecomment-532911042>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAZHR2LLLI7EZX67H6ALONLQKK6IXANCNFSM4FEZDBXA>
.
|
No you can't. You can't get missing kernel features, and rootlesskit uses them. |
I assume you are speaking about overlay filesystem kernel support. Check xda forum... there are plenty of custom kernels there. |
@dnk8n there is an alternative to docker that runs in Termux PRoot. It is called udocker: https://www.google.com/search?q=TermuxArch+udocker |
I didn't expect it to install successfully, but I was curious to see what 'yum install docker' resulted in.
Here is the output:
I am curious as to what might be missing. I imagine it is a massive task to support Docker. Any insight would be very much appreciated.
The text was updated successfully, but these errors were encountered: