update documentation to make /var/run read-only, and add /dev/disk to the kustomize base

This commit is contained in:
David Ashpole 2018-08-21 17:39:56 -07:00
parent eb02a5e941
commit d1b3158fa5
2 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,7 @@ To quickly tryout cAdvisor on your machine with Docker, we have a Docker image t
``` ```
sudo docker run \ sudo docker run \
--volume=/:/rootfs:ro \ --volume=/:/rootfs:ro \
--volume=/var/run:/var/run:rw \ --volume=/var/run:/var/run:ro \
--volume=/sys:/sys:ro \ --volume=/sys:/sys:ro \
--volume=/var/lib/docker/:/var/lib/docker:ro \ --volume=/var/lib/docker/:/var/lib/docker:ro \
--volume=/dev/disk/:/dev/disk:ro \ --volume=/dev/disk/:/dev/disk:ro \

View File

@ -30,6 +30,9 @@ spec:
- name: docker - name: docker
mountPath: /var/lib/docker mountPath: /var/lib/docker
readOnly: true readOnly: true
- name: disk
mountPath: /dev/disk
readOnly: true
ports: ports:
- name: http - name: http
containerPort: 8080 containerPort: 8080
@ -49,3 +52,6 @@ spec:
- name: docker - name: docker
hostPath: hostPath:
path: /var/lib/docker path: /var/lib/docker
- name: disk
hostPath:
path: /dev/disk