用循环器监视无根的码头机
我有设置docker按说明
我的设置有一些容器正常。现在,我想通过在容器中启动CADVISOR来设置监视。
docker run -d -p 8080:8080 -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro --name=cadvisor google/cadvisor:latest
单击Cadvisor UI中的“ Docker容器”可提供以下结果
无法获取Docker信息:无法通过unix:///var/run/docker.sock连接到Docker守护程序。 Docker守护程序是否在运行?
在无根模式下运行时,我必须更改安装的量吗?
I have setup docker to run in rootless mode following the instructions
https://docs.docker.com/engine/security/rootless/
I have some containers running fine with this setup. Now i want to setup monitoring via cAdvisor starting cAdvisor in a container.
docker run -d -p 8080:8080 -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro --name=cadvisor google/cadvisor:latest
Clicking on 'docker containers' in the cAdvisor UI delivers the following result
failed to get docker info: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Do i have to change the mounted volumes when running in rootless mode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无根运行时,您的Docker插座应该在
新的CMDline上看起来像这样:
我认为曝光Cadvisor
8080:8080:8080
是个好主意,您需要在该端口上做一些限制,例如防火墙或更改侦听地址,以更限制的接口。When running rootless, your docker socket should be at
new cmdline will look like this:
I don't think exposing cadvisor
8080:8080
is good idea, you need to do some restrictions on that port, like a firewall or change listening address to a more restricted interface.