From 60ca6354bd1fe4acace21029389f23fa95257526 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sat, 9 Dec 2017 15:33:49 +0100 Subject: [PATCH] doc: move docker autobuild from index.md to shaarli-images.md --- doc/md/docker/shaarli-images.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/md/docker/shaarli-images.md b/doc/md/docker/shaarli-images.md index 1769d7e9..5491ee76 100644 --- a/doc/md/docker/shaarli-images.md +++ b/doc/md/docker/shaarli-images.md @@ -81,3 +81,14 @@ backstabbing_galileo $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ``` + +### Automatic builds + +Docker users can start a personal instance from an [autobuild image](https://hub.docker.com/r/shaarli/shaarli/). For example to start a temporary Shaarli at ``localhost:8000``, and keep session data (config, storage): +``` +MY_SHAARLI_VOLUME=$(cd /path/to/shaarli/data/ && pwd -P) +docker run -ti --rm \ + -p 8000:80 \ + -v $MY_SHAARLI_VOLUME:/var/www/shaarli/data \ + shaarli/shaarli +```