Running cAdvisor using a container
There are a number of ways to install cAdvisor; the easiest way to get started is to download and run the container image that contains a copy of a precompiled cAdvisor binary.
Before running cAdvisor, let's launch a fresh vagrant host:
[russ@mac ~]$ cd ~/Documents/Projects/monitoring-docker/vagrant-centos/ [russ@mac ~]$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==>default: Importing base box 'russmckendrick/centos71'... ==>default: Matching MAC address for NAT networking... ==>default: Checking if box 'russmckendrick/centos71' is up to date... ..... ==>default: => Installing docker-engine ... ==>default: => Configuring vagrant user ... ==>default: => Starting docker-engine ... ==>default: => Installing docker-compose ... ==>default: => Finished installation of Docker [russ@mac ~]$ vagrantssh
Tip
Using a backslash
As we have a lot options to pass to the docker run
command, we are using...