diff options
author | nodiscc <nodiscc@gmail.com> | 2017-12-27 14:48:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-27 14:48:56 +0100 |
commit | 3d4c1b8af21a4bcb833b75d6a913a624e1e4e45b (patch) | |
tree | 919f96aa170ae6dbcc7c80f576f378a1c8fea6ba /doc/md/docker | |
parent | ceb3f9174b259c97b6e5d87174383bf0d5fbf034 (diff) | |
parent | e2a2dc35c21de87a37778860e7f6a3a4d1c96412 (diff) | |
download | Shaarli-3d4c1b8af21a4bcb833b75d6a913a624e1e4e45b.tar.gz Shaarli-3d4c1b8af21a4bcb833b75d6a913a624e1e4e45b.tar.zst Shaarli-3d4c1b8af21a4bcb833b75d6a913a624e1e4e45b.zip |
Merge pull request #1036 from shaarli/doc-overhaul
[WIP] Improve documentation
Diffstat (limited to 'doc/md/docker')
-rw-r--r-- | doc/md/docker/shaarli-images.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/md/docker/shaarli-images.md b/doc/md/docker/shaarli-images.md index 1d19510a..5491ee76 100644 --- a/doc/md/docker/shaarli-images.md +++ b/doc/md/docker/shaarli-images.md | |||
@@ -1,3 +1,6 @@ | |||
1 | A brief guide on getting starting using docker is given in [Docker 101](docker-101.md). | ||
2 | To learn more about user data and how to keep it across versions, please see [Upgrade and Migration](../Upgrade-and-migration.md). | ||
3 | |||
1 | ## Get and run a Shaarli image | 4 | ## Get and run a Shaarli image |
2 | 5 | ||
3 | ### DockerHub repository | 6 | ### DockerHub repository |
@@ -78,3 +81,14 @@ backstabbing_galileo | |||
78 | $ docker ps -a | 81 | $ docker ps -a |
79 | CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | 82 | CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
80 | ``` | 83 | ``` |
84 | |||
85 | ### Automatic builds | ||
86 | |||
87 | 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): | ||
88 | ``` | ||
89 | MY_SHAARLI_VOLUME=$(cd /path/to/shaarli/data/ && pwd -P) | ||
90 | docker run -ti --rm \ | ||
91 | -p 8000:80 \ | ||
92 | -v $MY_SHAARLI_VOLUME:/var/www/shaarli/data \ | ||
93 | shaarli/shaarli | ||
94 | ``` | ||