Skip to content

Instantly share code, notes, and snippets.

@kxxoling
Created August 11, 2016 12:31
Show Gist options
  • Save kxxoling/e3aa4e7c75fd2668da3280a8cfa5cf64 to your computer and use it in GitHub Desktop.
Save kxxoling/e3aa4e7c75fd2668da3280a8cfa5cf64 to your computer and use it in GitHub Desktop.

使用 glances 监控系统状态

在 docker 中运行

终端模式:

docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances

browser 模式:

docker run -p 61208:61208 \
  -e GLANCES_OPT="-w" \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  --pid host \
  -it docker.io/nicolargo/glances
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment