Home > Article > Operation and Maintenance > How docker containers share the kernel
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!