亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

docker-images - docker官方拉取的centos最新鏡像系統(tǒng)信息卻是ubuntu怎么回事???
迷茫
迷茫 2017-04-22 09:00:30
0
2
755

我拉取的官方centos:latest鏡像,運行后運行uname -a沒看到centos字樣,只有ubuntu,怎么回事???

迷茫
迷茫

業(yè)精于勤,荒于嬉;行成于思,毀于隨。

reply all(2)
阿神

The kernel of the container is the kernel of the host, and your host is ubuntu

伊謝爾倫

After some research, it seems that the docker kernel is indeed the host kernel

  • The difference between distributions mainly lies in the organizational form such as file directories and the difference in pre-installed software

  • The docker image is just a packaged file system and does not include the system kernel

#查看系統(tǒng)的發(fā)行說明
cat /etc/issue

#uname是直接調用系統(tǒng)接口得到信息, shell的uname命令實際封裝了函數

#include <sys/utsname.h>
int uname(struct utsname *name);

In this case, it shouldn’t be a problem to see two differences.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template