Answer the question
In order to leave comments, you need to log in
Docker and base images with different Linux distributions?
Hello,
I'm kind of uncomfortable that when building a project and using third-party images, each base image is with different Linux distributions.
FROM mysql:5.7 # Основано на debian:jessie
FROM sphinx # Основано на Ubuntu
FROM debian:jessie
RUN apt-get update
RUN apt-get install nano
# Ok
FROM myproject_debian
RUN nano file
# bash: nano: command not found
Answer the question
In order to leave comments, you need to log in
So the docker file is not for running programs the way you do.
It is for creating an environment, your new image.
How the dockerfile was created, we build the image with a script (dockerfile)
sudo docker build -t [name]
here is an example
https://www.8host.com/blog/avtomaticheskaya-sborka...
Now on the topic of performance. If you are seriously concerned about this and understand what and where to twist in linux, in order to achieve it. Create your images. Take as a basis the most minimal alpinelinux.org dist and do it for yourself. Everything else can be used, to quickly deploy, check . I always treat assemblies with some distrust, since there is no certainty that everything was done there as it should :)
I understand that the core is one, but the environment is too diverse, I need one system.
mysqld
mysqld
strange architecture, why drag the entire environment behind you to launch just one process, why not separate these assemblies into some higher level, and for example, if ubunta is used in several images, then take it from the same place, and not for each image to push your entire distribution onto disk
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question