Linux 在 Android 上运行 docker

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19315168/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 01:03:22  来源:igfitidea点击:

Running docker on Android

androidlinuxlinux-kerneldocker

提问by Xelom

With Android 4.4 KitKat, Google is upgrading linux kernel to version 3.8 which is the required kernel version for Docker.

在 Android 4.4 KitKat 中,Google 正在将 linux 内核升级到 3.8 版,这是 Docker 所需的内核版本。

I don't know the AUFS part but will there be a way to run docker containers on android with this update?

我不知道 AUFS 部分,但是有没有办法通过此更新在 android 上运行 docker 容器?

采纳答案by Rohan Singh

According to the documentation, the Android kernel is missing quite a few of the kernel features needed by LXC.

根据文档,Android 内核缺少LXC 所需的许多内核功能

Perhaps in the future with Docker 1.x, it might be possible to write a plugin that uses Android features instead of LXC. But for now, you would need to build a custom Android kernel and then build LXC for it.

也许在未来的 Docker 1.x 中,有可能编写一个使用 Android 功能而不是 LXC 的插件。但是现在,您需要构建一个自定义的 Android 内核,然后为其构建 LXC。

There are somepeopleactually working on that, and Stéphane Graber has a good summary of the difficulties on his blog.

还有一些实际工作对,和斯特凡格雷伯有在他的博客的困难一个很好的总结

回答by jpetazzo

It depends if this kernel is compiled with the required features to run containers. If it's the case, then Docker could be used on Android (especially Docker 0.7, which is in release candidate state right now, and doesn't require AUFS anymore).

这取决于此内核是否使用运行容器所需的功能进行编译。如果是这样,那么 Docker 可以在 Android 上使用(尤其是 Docker 0.7,它现在​​处于候选发布状态,不再需要 AUFS)。