Dufs is a web-based file manager which enables users to handle files on both remote servers and local machines via a web browser interface.
This tutorial explains how to install Dufs inside a Docker container on Linux. Commands have been tested on Ubuntu.
Prepare environment
Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.
Install Dufs
- Host network
Run the following command to create a container for Dufs that uses host network:
docker run -d --name=dufs --restart=always --network=host \
-v /:/data \
sigoden/dufs /data -A
- User-defined bridge network
User-defined bridge network can be used for listening on different port. By default, Dufs service is listening on port 5000. It can be changed with -p
option.
docker network create app-net
docker run -d --name=dufs --restart=always --network=app-net \
-p 8080:5000 \
-v /:/data \
sigoden/dufs /data -A
Testing Dufs
To access a web UI, go to http://<IP_ADDRESS>:5000
, where <IP_ADDRESS>
is the IP address of the system.
![Dufs inside Docker container on Linux](/uploads/posts/content/2024/07/dufs_inside_docker_container_on_linux.webp?v=1721236348)
Uninstall Dufs
To completely remove Dufs, remove its container:
docker rm --force dufs
Remove Dufs image:
docker rmi sigoden/dufs
If a user-defined bridge network was created, you can delete it as follows:
docker network rm app-net
Leave a Comment
Cancel reply