$(uname -a) returning the same in docker host or any docker container

后端 未结 2 570
南方客
南方客 2020-12-15 05:27

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         


        
2条回答
  •  渐次进展
    2020-12-15 05:51

    • cat /etc/os-release, or
    • cat /etc/issue for CentOS

    See https://serverfault.com/a/805390/161568.

提交回复
热议问题