Linux – Docker: Running a Linux distribution different from the one in the host

dockerlinux

Given that Docker images don't contain Linux kernel, when they are run in the host with a different Linux distribution they can get possibly different kernel version from the one shipped with the full (non-Docker) distribution.

How can a distribution vendor support their OS when it is run in a Docker container, given the variation in the host kernels? Do they require it to be run on the host with the same flavor/version (for example Ubuntu 15.04 on Ubuntu 15.04)?

Best Answer

Seems like you're making an assumption that kernel version matters. Surely there are cases where it does, but in the vast majority of cases, it does not matter.

Of course like any well-managed system, you should ensure you have tight control on your host systems as well as your application containers, and that your testing environment matches your prod environment.