summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-02 15:44:59 -0400
committerUnknwon <u@gogs.io>2015-10-02 15:44:59 -0400
commite34d0063c3e47ad71c94ea49142fd006cb29754b (patch)
treecefcee5b76eecb1eb952734a6e30f0a96385d548 /docker
parent655b69cb1f7804462f9ce50314446d00bebbf345 (diff)
downloadgitea-e34d0063c3e47ad71c94ea49142fd006cb29754b.tar.gz
gitea-e34d0063c3e47ad71c94ea49142fd006cb29754b.zip
Update Docker README for #1708
Diffstat (limited to 'docker')
-rw-r--r--docker/README.md27
1 files changed, 12 insertions, 15 deletions
diff --git a/docker/README.md b/docker/README.md
index 4046b6fbb9..ee7653e325 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -35,6 +35,17 @@ Directory `/var/gogs` keeps Git repoistories and Gogs data:
|-- log
|-- templates
+### Volume with data container
+
+If you're more comfortable with mounting data to a data container, the commands you execute at the first time will look like as follows:
+
+```
+# Create data container
+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
+```
+
## Settings
Most of settings are obvious and easy to understand, but there are some settings can be confusing by running Gogs inside Docker:
@@ -57,18 +68,4 @@ Steps to upgrade Gogs with Docker:
- `docker pull gogs/gogs`
- `docker stop gogs`
- `docker rm gogs`
-- Finally, create container as the first time and don't forget to do same volume and port mapping.
-
-## Troubleshooting
-
-If you see the following error:
-
-```
-checkVersion()] [E] Binary and template file version does not match
-```
-
-Run `rm -fr /var/gogs/gogs/templates/` should fix this it. Just remember to backup templates file if you have made modifications youself.
-
-## Known Issues
-
-- [Use ctrl+c when clone through SSH makes Docker exit unexpectedly](https://github.com/gogits/gogs/issues/1499) \ No newline at end of file
+- Finally, create container as the first time and don't forget to do same volume and port mapping. \ No newline at end of file