Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run cadvisor securely? #1069

Open
hasufell opened this issue Jan 20, 2016 · 1 comment
Open

How to run cadvisor securely? #1069

hasufell opened this issue Jan 20, 2016 · 1 comment

Comments

@hasufell
Copy link

I tried cadvisor and the README suggests to do:

  --volume=/:/rootfs:ro \
  --volume=/var/run:/var/run:rw \
  --volume=/sys:/sys:ro \
  --volume=/var/lib/docker/:/var/lib/docker:ro \

which, from a security standpoint, is a really strong no-go. /var/run is mounted writable... there will be more on the host system that is writing to that directory including crucial system services. Then the whole root file system is mounted in read-only. That exposes all data of the host.

Is there no way to run cadvisor in a more restricted way?

@vishh
Copy link
Contributor

vishh commented Jan 20, 2016

/var/run is needed to access the docker socket. cAdvisor needs read-only
access to docker API. Maybe mount just that in.

On Wed, Jan 20, 2016 at 7:04 AM, Julian Ospald [email protected]
wrote:

I tried cadvisor and the README suggests to do:

--volume=/:/rootfs:ro
--volume=/var/run:/var/run:rw
--volume=/sys:/sys:ro
--volume=/var/lib/docker/:/var/lib/docker:ro \

which, from a security standpoint, is a really strong no-go. /var/run is
mounted writable... there will be more on the host system that is writing
to that directory including crucial system services. Then the whole root
file system is mounted in read-only. That exposes all data of the host.

Is there no way to run cadvisor in a more restricted way?


Reply to this email directly or view it on GitHub
#1069.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants