/duc-docker

Dockerized version of duc, a disk usage analyzer.

Primary LanguageDockerfile

duc-docker

Docker Automated build Docker Build Status

Dockerized version of duc, a disk usage analyzer. See docker hub to pull the images.

This image has some tweaks to achieve my personal need, but everything is straightforward (see its github repo).

Usage

Apache CGI Server

By default, this image will just start up as an apache server for duc databases. Say you have two db files named one.db, and two.db in your host directoy /mydbs/ and a database file /home/myduc.db . Then running the following command

docker run -d -p 80:80 -v /mydbs/:/duc/db/:ro -v /home/myduc.db:/duc/.duc.db:ro tigerdockermediocore/duc-docker:latest

will provide following web pages

duc Indexing

Mount directories you want to index into /host with readonly property. For example,

docker run -d -v /home:/host/home:ro -v /media:/host/media:ro tigerdockermediocore/duc-docker:latest duc index /host

will index /home and /media, creating /duc/.duc.db inside the container. So don't forget to pull out the db file afterward!

References