docker run -d -p 8086:80 -v /mnt:/mnt/data --name file_list logidockerhub/directorybrowser
-
run : run the specific image as container
-
-d : detach mode (run in background)
-
-p 8086:80: -p specify the port to expose
8086: It can change.
80: It is fixed
-
-v /mnt:/mnt/data : -v attach volume to container
/mnt: It can change (your local server path)
If your local server is windows may it look like below
D:/path/folder
/mnt/data: It is fixed.
If you use same port you can check through this url http://localhost:8086/
Note: If you are getting error or warning like this WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested Please use below command with you required changes
docker run -d -p 8086:80 -v /mnt:/mnt/data --name file_list logidockerhub/directorybrowser:arm64
If you want to create a own build
git clone https://github.com/logesh810/DirectoryBrowsingDocker.git
cd DirectoryBrowsingDocker
docker build -t directorybrowser .
or
docker build --platform linux/arm64 -t directorybrowser:arm64 .