Why $(uname -a)
returns the same Linux kernel than the host machine inside a docker container?
uname -a
#=> Linux leo 3.13.0-55-generic #94-U
Docker uses the host operating system kernel, there is no custom or additional kernel inside the container. All containers running on the machine are sharing this "host" kernel.
See for more information this question on SuperUser.
cat /etc/os-release
, orcat /etc/issue
for CentOSSee https://serverfault.com/a/805390/161568.