Mac部署cAdvisor runzhliu 收录于 Kubernetes和容器 2017-02-01 约 177 字 预计阅读 1 分钟 目录 概述 运行 概述 先看一下前提条件。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 # docker version Client: Docker Engine - Community Version: 18.09.2 API version: 1.39 Go version: go1.10.8 Git commit: 6247962 Built: Sun Feb 10 04:12:39 2019 OS/Arch: darwin/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 18.09.2 API version: 1.39 (minimum version 1.12) Go version: go1.10.6 Git commit: 6247962 Built: Sun Feb 10 04:13:06 2019 OS/Arch: linux/amd64 Experimental: false # uname -a Darwin RUNZHLIU-MB2 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64 运行 1 2 3 4 5 6 7 8 9 docker run \ --volume=/:/rootfs:ro \ --volume=/var/run:/var/run:rw \ --volume=/sys:/sys:ro \ --volume=/var/lib/docker/:/var/lib/docker:ro \ --publish=8080:8080 \ --detach=true \ --name=cadvisor \ google/cadvisor:latest 运行成功。 1 2 3 # docker ps -l CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8f9fe5d26e93 google/cadvisor:latest "/usr/bin/cadvisor -…" 8 seconds ago Up 7 seconds 0.0.0.0:8080->8080/tcp cadvisor 警告 本文最后更新于 2017年2月1日,文中内容可能已过时,请谨慎参考。 💡赞赏支持 微信打赏 支付宝打赏 Please enable JavaScript to view the comments powered by utterances.