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

后端 未结 2 566
南方客
南方客 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:41

    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.

提交回复
热议问题