Skip to main content

A different version is showing in different command in a Debian container [Resolved]

I am running a docker Debian 9.6 container. But when I run "uname" it is showing Ubuntu. But, "cat /etc/debian_version" is showing Debian version 9.6.

root@a2bb8bf8e79c:/# uname -a
Linux a2bb8bf8e79c 4.15.0-39-generic #42~16.04.1-Ubuntu SMP Wed Oct 24 17:09:54 UTC 2018 x86_64 GNU/Linux
root@a2bb8bf8e79c:/# cat /etc/debian_version
9.6
root@a2bb8bf8e79c:/# 

Question Credit: Shahjalal
Question Reference
Asked December 5, 2018
Tags: debian, docker
Posted Under: Network
8 views
1 Answers

Docker containers run on the host's kernel, #42~16.04.1-Ubuntu SMP Wed Oct 24 17:09:54 UTC 2018 is the kernel section of the output. If you run uname -a on the host it should give you the same value for the kernel.


credit: Andrew Gelnar
Answered December 5, 2018
Your Answer
D:\Adnan\Candoerz\CandoProject\vQA