docs icon indicating copy to clipboard operation
docs copied to clipboard

Update to documentation: --privileged not needed any longer for CentOS with systemd?

Open beetree opened this issue 11 years ago • 3 comments

This file: https://github.com/docker-library/docs/tree/master/centos

States that to run CentOS with systemd you need --privileged. It seems to work without this in:

docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64

Alternatively, this article claims that --cap-add=SYS_ADMIN is a sufficient replacement of --privileged

Am I missing something or is the documentation out of date?

Thanks!

EDIT: To be clear, in my testing, not even --cap-add=SYS_ADMIN is necessary.

beetree avatar Aug 09 '15 20:08 beetree

cc @jperrin

tianon avatar Aug 11 '15 16:08 tianon

The documentation is out of date, however there are some bits of systemd that require more capabilities than the default. --cap-add=SYS_ADMIN should be sufficient. I'll see about correcting the documentation.

jperrin avatar Aug 11 '15 16:08 jperrin

Fixed via https://github.com/docker-library/docs/pull/439. :+1:

tianon avatar Jan 18 '16 22:01 tianon