If you’re exploring ways to efficiently monitor Docker disk usage, look no further than DokuDoku—a lightweight web-based application that enables you to keep an eye on your Docker environment in a user-friendly manner. This guide will walk you through the process of setting up and using Doku, as well as provide troubleshooting tips. Let’s dive in!
Getting Started with Doku
First things first—let’s get Doku on your system. Pulling the Doku Docker container is seamless and quick. It’s only about 6 MB when compressed!
Step 1: Pull the Doku Docker Container
Open your terminal and run the following command to fetch the latest Doku release:
docker pull amerkurevdoku:latest
Using Doku
Once you have Doku downloaded, the next step is to run the Docker container correctly. You’ll need to mount the Docker Unix socket and the top-level directory from your host machine.
Step 2: Running the Doku Container
Execute this command:
docker run --name doku -d -v /var/run/docker.sock:/var/run/docker.sock:ro -v /:/hostroot:ro -p 9090:9090 amerkurevdoku
This command does several things:
- Creates and runs a detached container named “doku”.
- Mounts the Docker socket allowing Doku to access Docker’s data.
- Makes your system’s root directory accessible to calculate log sizes.
- Exposes port 9090 to access the Doku web interface at http://localhost:9090.
Optional: Customizing the Port
If you prefer to access Doku on a different port, simply change -p 9090:9090 to your desired port. For example:
-p 8080:9090
Configuring Basic Authentication
Doku supports basic authentication for enhanced security, although it is disabled by default. If you wish to enable it, you’ll need to specify an htpasswd file. Here’s how:
--basic-htpasswd=file_location
Make sure your htpasswd file is encrypted with the bcrypt algorithm in the following format:
username1:bcrypt(password1)
username2:bcrypt(password2)...
You can generate it with the command:
htpasswd -nbB username password
Troubleshooting
While setting up Doku is relatively straightforward, you might encounter a few hiccups. Here are some common issues and their solutions:
- Container not starting: Ensure that Docker is running and that the commands are correctly typed, especially the volume mounts.
- Accessing Doku fails: Double-check that you are using the correct port and that there are no firewalls blocking access to it.
- Log sizes are not displayed: Verify that you have mounted the top-level directory correctly. The command must specify
/:/hostroot:ro.
If you need more insights, updates, or wish to collaborate on AI development projects, stay connected with fxis.ai.
Supported Architectures
Doku is versatile and supports various architectures including:
- linux/amd64
- linux/armv7
- linux/arm64
Conclusion
Monitoring Docker disk usage has never been easier with Doku. By following these steps, you can get insights into your Docker environments and ensure efficient disk usage takes place.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

