Home  >  Article  >  Operation and Maintenance  >  How docker containers share the kernel

How docker containers share the kernel

王林
王林Original
2020-04-14 10:15:053567browse

How docker containers share the kernel

1. Import the image

How docker containers share the kernel

2. Run the container and view the kernel

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

How docker containers share the kernel

[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    ##查看内核

How docker containers share the kernel

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn