
1. Import the image

2. Run the container and view the kernel
[root@server1 ~]# docker run -it --name 名字 镜像 ##运行镜像 (-i: 以交互模式运行容器, -t: 为容器重新分配一个伪输入终端 通常-i -t 同时使用 )

[Note]: Run the exit command or use CTRL D to exit and close the container; run ctrl p q to exit the container but do not close the container.
3. Check the kernel of the host machine
[root@server1 ~]# uname -r ##查看内核

Recommended tutorial:docker tutorial
The above is the detailed content of How docker containers share the kernel. For more information, please follow other related articles on the PHP Chinese website!
The difference between k8s and docker
What are the methods for docker to enter the container?
What should I do if the docker container cannot access the external network?
What is the use of docker image?
python development tools
Introduction to screenshot shortcut keys in win10
What types of files can be identified based on
Else usage in Python loop structure