aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-26 13:45:24 -0500
committerUnknwon <u@gogs.io>2016-01-26 13:45:24 -0500
commita849ac0164550505520ab12774b48ae579d2f302 (patch)
tree02ff1e94074fe6acbfc10a1bcdca3c0a9b2ff8d2 /docker
parentab0ba4bbae121c9ba3cf0d49efc1c90ef7bb3ddc (diff)
parenteb14fbf95f64a1c6bb04ef9815229faf8fad4b01 (diff)
downloadgitea-a849ac0164550505520ab12774b48ae579d2f302.tar.gz
gitea-a849ac0164550505520ab12774b48ae579d2f302.zip
Merge pull request #2446 from jgsqware/develop
Add Docker Volume from 1.9
Diffstat (limited to 'docker')
-rw-r--r--docker/README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/README.md b/docker/README.md
index d1250cdba6..ac4536232f 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -44,6 +44,15 @@ docker run --name=gogs-data --entrypoint /bin/true gogs/gogs
# Use `docker run` for the first time.
docker run --name=gogs --volumes-from gogs-data -p 10022:22 -p 10080:3000 gogs/gogs
```
+#### Using Docker 1.9 Volume command
+
+```
+# Create docker volume.
+$ docker volume create --name gogs-data
+
+# Use `docker run` for the first time.
+$ docker run --name=gogs -p 10022:22 -p 10080:3000 -v gogs-data:/data gogs/gogs
+```
## Settings