Install Docker

Update the repo to get latest versions

sudo apt update

Install the latest version

sudo apt install docker.io

Set Docker to start on startup

sudo systemctl enable --now docker

Give your user permissions to docker, replacing user with your username

sudo usermod -aG docker user

Once you have run this command close and reopen your session if you accessing remotely. This is to apply the permissions in the above step

Test it has installed correctly by getting the docker version

docker --version

Docker Compose

I also install docker-compose as some dockers need you to compose from a yml file. This downloads v2.16.0, just change this if the version updates to a later version

sudo curl -L "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Give permissions to this

sudo chmod +x /usr/local/bin/docker-compose

Test it has installed correctly by getting the docker-compose version

docker-compose --version

Install Filebrowser

I keep all my dockers in a dockers folder in my home directory. If it doesn’t exist already, create this folder:-

mkdir ~/dockers

Now create a folder for Filebrowser to live in.

mkdir ~/dockers/filebrowser

Change directory to this folder

cd ~/dockers/filebrowser

Create a config directory for filebrowser to save it’s config to:-

mkdir config

Create a docker-compose.yml file

nano docker-compose.yml

Paste the following. I’m using port 8188 as port 8080 is already in use for me. If you want to use a different port, just change the 8188 in 8188:8080 to whatever port you want. I’m also mounting the entire of my server with the /:/data command. / is the root of the OS, if you want to mount a specific drive you can amend this.

version: "3"
services:
  filebrowser:
    image: hurlenko/filebrowser
    user: "1000:1000"
    ports:
      - 8188:8080
    volumes:
      - /:/data
      - ./config:/config
    restart: always

Save the file with ctl + x, then y to save.

Run the docker-compose file with the following:-

docker-compose up -d

First run

Browse to http://serverip:8188 and you will get the first run screen.