Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

casperklein/docker-http

Open more actions menu

Repository files navigation

docker-http

Version Supports amd64 architecture Supports aarch64 architecture Supports armhf architecture Supports armv7 architecture Docker image size

Quick way to share files with a Fancy Index Listing via HTTP.

Parameters

Parameters Description
-p 8080:80 Map host port 8080
-e user="foo" Username for authentication
-e pass="CHANGE-ME" Password for authentication
-e auth="random" Generate random user/pass for authentication
-e TZ="Europe/Berlin" Specify a timezone to use
-v $PWD:/html Mount current dirctory for file sharing

Share files in current directory via HTTP

docker run --rm -it -v $PWD:/html -p 8080:80 casperklein/http

with authentication

docker run --rm -it -v $PWD:/html -p 8080:80 -e user="foo" -e pass="CHANGE-ME" casperklein/http

authentication with random credentials

docker run --rm -it -v $PWD:/html -p 8080:80 -e auth="random" casperklein/http

Aliases

alias httphere='docker run --rm -it -v $PWD:/html -p 8080:80 casperklein/http'
alias httphere='docker run --rm -it -v $PWD:/html -p 8080:80 -e user="foo" -e pass="CHANGE-ME" casperklein/http'
alias httphere='docker run --rm -it -v $PWD:/html -p 8080:80 -e auth="random" casperklein/http'

Access files

http://$HOST:8080/

Fancy Directory Listing

About

Quick way to share files with a "Fancy Index Listing" via HTTP.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.