AIO and MUNO mode upgrade for EG 1.5.0 version
[eliot.git] / scripts / cadvisorsetup.sh
1 #!/bin/bash -ex
2 ##############################################################################
3 # Copyright (c) 2019 Huawei Tech and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 HOSTNAME=`hostname`
12 sudo docker run  \
13  --volume=/:/rootfs:ro \
14  --volume=/var/run:/var/run:ro \
15  --volume=/sys:/sys:ro \
16  --volume=/var/lib/docker/:/var/lib/docker:ro \
17  --volume=/dev/disk/:/dev/disk:ro \
18  --publish=8081:8080 \
19  --detach=true \
20  --name=cadvisor-${HOSTNAME} \
21  google/cadvisor:latest 
22