我想对接我的python应用程序。我去了Docker hub,发现那里有很多可能的探测基地图像。
3.7.0-stretch, 3.7-stretch, 3-stretch, stretch (3.7/stretch/Dockerfile)
3.7.0-slim-stretch, 3.7-slim-stretch, 3-slim-stretch, slim-stretch, 3.7.0-slim, 3.7-slim, 3-slim, slim (3.7/stretch/slim/Dockerfile)
3.7.0-alpine3.8, 3.7-alpine3.8, 3-alpine3.8, alpine3.8, 3.7.0-alpine, 3.7-alpine, 3-alpine, alpine (3.7/alpine3.8/Dockerfile)
3.7.0-alpine3.7, 3.7-alpine3.7, 3-alpine3.7, alpine3.7 (3.7/alpine3.7/Dockerfile)
尽管我尝试过谷歌搜索,但我还是搞不清“舒展”、“苗条”、“苗条”和“阿尔卑斯”之间的区别。帮忙?
带有Dockerfiles的Github repo就在这里,但它非常动态,不容易阅读:
https://github.com/docker-library/python
自述文件也在这里:
https://github.com/docker-library/docs/tree/master/python
看起来关于
stretch
的信息真的丢失了。即使在git修订历史记录中也找不到,如果它是意外删除的。我创建了一个问题:https://github.com/docker-library/python/issues/343
Stretch是Debian 9的代号,目前是稳定版本(直到2019-07-06年,Debian 10Buster发布)。“oldstable”Debian 8的代码名是Jessie。
https://wiki.debian.org/DebianReleases
我个人的建议是使用最简单的阿尔卑斯山图片,如果有些东西不起作用,就退回到Debian图片:)
Debian与Alpine的比较(从Docker的角度,如果可能的话):
https://www.turnkeylinux.org/blog/alpine-vs-debian
https://nickjanetakis.com/blog/the-3-biggest-wins-when-using-alpine-as-a-base-docker-image
根据我有限的经验,最显著的区别是
apt
与apk
以及GNU-libc6与musl-libc。Alpine使用busybox而不是许多系统命令的完整版本。更新:许多带有编译过的二进制代码的Python轮可以处理基于Debian的图像,但是必须重新编译(通过
pip install
)用于基于Alpine的图像。在这些情况下,我会使用基于Debian的图像。相关问题 更多 >
编程相关推荐