Install FileRun Inside Docker Container in Linux

Install FileRun Inside Docker Container in Linux

FileRun is an application for file management and sharing through the web browser. It allows users to upload, organize, and share files with others.

This tutorial explains how to install FileRun inside a Docker container in the 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.

You also need to have a running MySQL container. Instructions can be found in the post.

Install FileRun

Before starting, create filerun database:

docker exec -it mysql mysql -u root -p -e "CREATE DATABASE filerun"
  • Host network

Run the following command to create a container for FileRun that uses host network:

docker run -d --name=filerun --restart=always --network=host \
    -v /opt/filerun/data:/var/www/html \
    -v /opt/filerun/user-files:/user-files \
    -e FR_DB_USER=root \
    -e FR_DB_PASS=pwd123 \
    -e FR_DB_NAME=filerun \
    -e FR_DB_PORT=3306 \
    -e FR_DB_HOST= \

MySQL container should run on host network as well.

  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, FileRun service is listening on port 80. It can be changed with -p option.

docker network create app-net
docker run -d --name=filerun --restart=always --network=app-net \
    -p 8080:80 \
    -v /opt/filerun/data:/var/www/html \
    -v /opt/filerun/user-files:/user-files \
    -e FR_DB_USER=root \
    -e FR_DB_PASS=pwd123 \
    -e FR_DB_NAME=filerun \
    -e FR_DB_PORT=3306 \
    -e FR_DB_HOST=mysql \

MySQL container should run on the same user-defined bridge network as well.


  • The FR_DB_USER and FR_DB_PASS can be used to specify MySQL credentials.
  • When user-defined bridge network is used, don't forget to change FR_DB_HOST. It specifies MySQL container name.

Testing FileRun

Open a web browser and go to http://<IP_ADDRESS>, where <IP_ADDRESS> is the IP address of the system. Follow the installation wizard to prepare FileRun. The default user account will be created. Username and password will be provided in the screen. Once setup is complete, login to the dashboard.

FileRun Inside Docker Container in Linux

Uninstall FileRun

To completely remove FileRun, remove its container:

docker rm --force filerun

Remove FileRun image:

docker rmi filerun/filerun

You can also remove FileRun data:

sudo rm -rf /opt/filerun

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.