diff options
author | juliengarcia <garciagonzalez.julien@gmail.com> | 2016-01-20 16:54:38 +0100 |
---|---|---|
committer | juliengarcia <garciagonzalez.julien@gmail.com> | 2016-01-20 16:54:38 +0100 |
commit | eb14fbf95f64a1c6bb04ef9815229faf8fad4b01 (patch) | |
tree | 7ded30c119fcbad0cc35baf9b91e3450875e502d /docker | |
parent | 7ef9a055886574655d9f2be70c957bc16bf30500 (diff) | |
download | gitea-eb14fbf95f64a1c6bb04ef9815229faf8fad4b01.tar.gz gitea-eb14fbf95f64a1c6bb04ef9815229faf8fad4b01.zip |
Add Docker Volume from 1.9
Diffstat (limited to 'docker')
-rw-r--r-- | docker/README.md | 9 |
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 |