Update Docker README for #1708

This commit is contained in:
Unknwon 2015-10-02 15:44:59 -04:00
parent 655b69cb1f
commit e34d0063c3

View file

@ -35,6 +35,17 @@ Directory `/var/gogs` keeps Git repoistories and Gogs data:
|-- log |-- log
|-- templates |-- 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 ## Settings
Most of settings are obvious and easy to understand, but there are some settings can be confusing by running Gogs inside Docker: 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 pull gogs/gogs`
- `docker stop gogs` - `docker stop gogs`
- `docker rm gogs` - `docker rm gogs`
- Finally, create container as the first time and don't forget to do same volume and port mapping. - 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)