Easy way to host the nginx server with directory browser in docker
372
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
Content type
Image
Digest
sha256:355324caf…
Size
69.6 MB
Last updated
almost 2 years ago
docker pull logidockerhub/directorybrowser