I use Elasticsearch via Docker, and I see that the recent version of the Elasticsearch (7.13.2) Docker image uses centos:8
as the base image.
Is it possible/a good idea to run Docker containers with a base image that is different to the operating system on which Docker Engine is installed? for example:
- Install Docker Engine on
CentOS 7.6
(orUbuntu 20.04
) - Start a Docker container from an image based on Centos 8
If this works, is there anything I should be aware of?
Looking at this Stack Overflow answer, it would seem to me that this shouldn't be a problem so long as the Linux kernel versions are the same between the base image and the OS. But I assume that is not the case for CentOS 7.6
vs CentOS 8
.
What would be the concern WRT to a mismatched Linux kernel version for a Docker container's base image vs the OS?