Browse Source

Merge pull request #2446 from jgsqware/develop

Add Docker Volume from 1.9
pull/2484/head
Unknwon 9 years ago
parent
commit
a849ac0164
  1. 9
      docker/README.md

9
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

Loading…
Cancel
Save