刚接触docker不久,学了点最最基础的东西
目前公司的服务(JavaEE为主)都跑在centos上,我也尝试了构建以centos:7为基础镜像的容器
在接触外面一些资料的过程中,发现样例都是以ubuntu居多
官方ubuntu支持的比较好,这个我是知道的
我在使用阿里云的容器hub时,所有的Dockerfile都是ubuntu下的,而且ubuntu还有优化版的base image,phusion-baseimage之类的
问题:
1、各位的base image是怎么选择的,这个选择重要么?
2、跑docker的服务器系统用什么系统有关系么,是不是也是ubuntu更适合?
天蓬老师2017-04-24 09:13:45
It depends on yourself, centos and ubutnu are both good,
It doesn’t make much difference which one you use, but if you only care about the image size, you can try alpine linux
This is very small, stable under 5M
Now I plan to try to see if I can switch to alpine. It is said that the official image will be fully converted to alpine
I don’t know if it’s true or not, but many official images have alpine versions