You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull and start a docker container in the background
docker run -d maintainer/container:version
Pull and start a container with extra settings
docker run -d \ # Pull and start a vouch-proxy, background it after start
-p 9090:9090 \ # Map ports Host:Container
--name vouch-proxy \ # Set its running name be vouch-proxy
-v ${PWD}/config:/config \ # map config/*:/config/*
-v ${PWD}/data:/data \
--restart unless-stopped \ # Make this container come back at reboot.
voucher/vouch-proxy:alpine # Name of image to pull from docker hub, or run if its already local
filestash example from git repo
git clone https://github.com/mickael-kerjean/filestash
cd filestash/
docker build -t filestash ./docker/
cp config/config.json config/config.json.example
nano config/config.json
# enable write by all users so that the container can write to the config file on the host
chmod 666 config/config.json
docker run -d \
-p 8334:8334 \
--name filestash \
-v ${PWD}/config/config.json:/app/data/state/config/config.json \
--restart unless-stopped \
filestash:latest
monstaftp example dropping a folder into nginx+php for it to serve up
git clone https://github.com/vouch/vouch-proxy
cd vouch-proxy
cp config/config.yml_example_google config/config.yml
nano config/config.yml
# -f to specify alternate Dockerfile in directory# -t for container name to reference when running
docker build -t vouch-alpine -f Dockerfile.alpine .# Run the build we just created
docker run -d \
-p 9090:9090 \
--name vouch-alpine \
-v ${PWD}/config:/config \
-v ${PWD}/data:/data \
--restart unless-stopped \
vouch-alpine