2016-02-23 23:32:03 +00:00
# Docker Container Stats
A web interface for viewing historical and current statistics per docker container (cpu, mem, net i/o, block i/o) - in a docker container.
Pull and run daemonized:
```
2016-02-26 20:46:35 +00:00
docker pull weweave/docker-container-stats
2016-02-23 23:32:03 +00:00
docker run \
-d \
-p 8080:8080 \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--volume=/var/run/docker.sock:/var/run/docker.sock:ro \
--volume=/home/docker/storage/stats/db:/opt/docker-stats/db \
--name stats \
2016-02-26 20:46:35 +00:00
weweave/docker-container-stats
2016-02-23 23:32:03 +00:00
```
2016-02-26 20:46:35 +00:00
To view your stats, open a web browser and visit http://localhost:8080 (replace localhost with your docker host's hostname or ip address).
2016-02-23 23:32:03 +00:00
Mounting the volumes /var/lib/docker and /var/run/docker.sock (read-only) is required so that the docker container can retrieve the statistics for the containers.
Mounting the volume /opt/docker-stats/db is optional. You can use it if you want to persist the SQLite database.
2016-02-23 23:50:53 +00:00
2016-02-26 20:46:35 +00:00
We strongly recommend not making your stats available online. To password protect your statistics, you can use a frontend web server/proxy (Apache, nginx, ...).
2016-02-23 23:50:53 +00:00
## Screenshots
2016-02-26 20:46:35 +00:00

2016-02-23 23:50:53 +00:00
2016-02-26 20:46:35 +00:00

2016-02-23 23:50:53 +00:00
2016-02-26 20:46:35 +00:00
