Docker Compose的yml文件中privileged参数的作用是什么?

WBOY
Release: 2016-06-06 20:14:10
Original
5278 people have browsed it

Docker Compose的yml文件中,privileged参数的作用是什么?翻了文档,百度和谷歌,可是没查到,麻烦帮解释一下。
为什么fpm和nginx需要加上这个参数,而web不需要这个参数呢?如下图所示:
Docker Compose的yml文件中privileged参数的作用是什么?

回复内容:

Docker Compose的yml文件中,privileged参数的作用是什么?翻了文档,百度和谷歌,可是没查到,麻烦帮解释一下。
为什么fpm和nginx需要加上这个参数,而web不需要这个参数呢?如下图所示:
Docker Compose的yml文件中privileged参数的作用是什么?

大约在0.6版,privileged被引入docker。
使用该参数,container内的root拥有真正的root权限。
否则,container内的root只是外部的一个普通用户权限。
privileged启动的容器,可以看到很多host上的设备,并且可以执行mount。
甚至允许你在docker容器中启动docker容器。

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
Popular Tutorials
More>
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!