mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 14:55:40 +03:00
Add Docker Volume from 1.9
This commit is contained in:
parent
7ef9a05588
commit
eb14fbf95f
1 changed files with 9 additions and 0 deletions
|
@ -44,6 +44,15 @@ docker run --name=gogs-data --entrypoint /bin/true gogs/gogs
|
||||||
# Use `docker run` for the first time.
|
# Use `docker run` for the first time.
|
||||||
docker run --name=gogs --volumes-from gogs-data -p 10022:22 -p 10080:3000 gogs/gogs
|
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
|
## Settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue