update documentation to make /var/run read-only, and add /dev/disk to the kustomize base
This commit is contained in:
parent
eb02a5e941
commit
d1b3158fa5
@ -13,7 +13,7 @@ To quickly tryout cAdvisor on your machine with Docker, we have a Docker image t
|
||||
```
|
||||
sudo docker run \
|
||||
--volume=/:/rootfs:ro \
|
||||
--volume=/var/run:/var/run:rw \
|
||||
--volume=/var/run:/var/run:ro \
|
||||
--volume=/sys:/sys:ro \
|
||||
--volume=/var/lib/docker/:/var/lib/docker:ro \
|
||||
--volume=/dev/disk/:/dev/disk:ro \
|
||||
|
@ -30,6 +30,9 @@ spec:
|
||||
- name: docker
|
||||
mountPath: /var/lib/docker
|
||||
readOnly: true
|
||||
- name: disk
|
||||
mountPath: /dev/disk
|
||||
readOnly: true
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
@ -49,3 +52,6 @@ spec:
|
||||
- name: docker
|
||||
hostPath:
|
||||
path: /var/lib/docker
|
||||
- name: disk
|
||||
hostPath:
|
||||
path: /dev/disk
|
||||
|
Loading…
Reference in New Issue
Block a user