How docker containers share the kernel

王林
Release: 2020-04-14 10:15:05
Original
3489 people have browsed it

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 同时使用 )
Copy after login

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 ##查看内核
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!