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

volumes 文件映射关系 #1

Open
jiayanbo opened this issue Jul 20, 2019 · 1 comment
Open

volumes 文件映射关系 #1

jiayanbo opened this issue Jul 20, 2019 · 1 comment

Comments

@jiayanbo
Copy link

大佬,我有个小疑问,为啥要挂载这几个目录
node-exporter:
volumes:
- /proc:/host/proc
- /sys:/host/sys
- /:/rootfs

cadvisor:
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro

grafana:
volumes:
- ./data/grafana:/var/lib/grafana

@loong576
Copy link
Owner

挂载这些目录表示容器需要读取操作系统/proc、/sys等数据

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

No branches or pull requests

2 participants