是否可以在android设备上运行容器? [英] Is it possible to run containers on android devices?

查看:180
本文介绍了是否可以在android设备上运行容器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名移动开发人员,最近擅长将容器与docker结合使用.我正在为我的研究生项目开发容器架构​​.该体系结构的模块之一将需要在android设备上运行.但是我找不到有关如何在android设备上运行容器的信息.可能很简单,例如带有python的高山图片.

I’m a mobile developer and recently adept at using containers with docker. I’m developing a container architecture for my graduate project. One of the modules of this architecture would need to be run on an android device. But I could not find information on how to run a container on an android device. It could be something simple like an alpine image with python.

有人可以告诉我是否有可能在带有docker甚至kubernetes的android设备上运行容器?

Can anyone tell me if there is a possibility to run a container on an android device with docker, or even kubernetes?

推荐答案

我必须注意,我不是Android开发方面的专家.但是我对此主题进行了研究,@ Emile的答案是您所能获得的最简单,最接近的答案-看来.

I must note that I am not an expert in Android development. But I researched on this topic, and @Emile's answer is the easiest and closest you can get - as it seems.

您实际上可以在Termux顶部运行Fedora(不仅是)映像,然后在其中启动Python.这显然不是docker,但可能会有所帮助.您可以找到更多信息

You can actually run Fedora (and not only) image on top of the Termux and then launch Python inside. This is obviously not a docker, but might be helpful.You can find more info here.

此外,我在 Quora ,这是一个类似的问题:

In addition, I've found this topic on Quora which is a similar question:

考虑一下:Docker对操作系统进行了抽象,仅此而已.安卓 操作系统与Linux发行版的内核完全不同,尽管 它是linux.获得适用于Linux的应用程序可能很棘手 发行版以在Android/Docker上运行.

Think about it: Docker abstracts the OS and that is all. The Android OS is quite a different kernel than linux distributions, even though it is linux. It might be tricky to get applications meant for a linux distribution to run on Android/Docker.

使用docker的主要原因之一是它可以提供 独立的应用程序包,不影响其余部分 系统的.打包为.apk文件的Android应用程序是 就是这样.

One of the main reasons to use docker is that it can provide self-contained packages of applications which do not affect the rest of the system. The Android applications, packaged as .apk files are just that.

除此之外,我还可以在 StackOverflow 上找到该主题,并不能真正解决问题.由于该问题可能与AUFS和LXT所需的某些内核功能有关,而这些功能在Android中不存在-现在其中一些是我记得的内容.

Other than that I was able to find this topic on StackOverflow which does not really resolve the issue. As the issue might be related to AUFS and some Kernel features needed by LXT which are not present in Android - now some of them is from what I remember.

还有一个说法,它可能在微博(使用英语翻译),但是除了花了很多功夫"这句话外,用户仅提供了一个屏幕截图,没有有关操作方法的详细信息.因此,这可能是一个尚不为人所知的部分,或者也许有人将能够实际提供更多的补充信息-也许在Docker论坛或GitHub上尝试.

Also there is a claim that it is possible on docker forum and weibo (use translation to English), but there is only a screenshot provided by user and no details on how to do it, besides "it took a lot of effort" statement. So it would seam that this is still a not well known part, or maybe someone will be able to actually provide more complementary information - maybe try on Docker forum or GitHub.

这篇关于是否可以在android设备上运行容器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆