summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/installation/with-docker.zh-cn.md
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@users.noreply.github.com>2017-11-26 16:44:32 -0500
committerLauris BH <lauris@nix.lv>2017-11-26 23:44:32 +0200
commitfb5c6b644460f94acb8976ad35165230b9d47fb2 (patch)
tree3811cb3807a9f666e77743cc0fc8bcea4276f421 /docs/content/doc/installation/with-docker.zh-cn.md
parentf148a4a1ed55c75d391930865185fb7bfbee03ba (diff)
downloadgitea-fb5c6b644460f94acb8976ad35165230b9d47fb2.tar.gz
gitea-fb5c6b644460f94acb8976ad35165230b9d47fb2.zip
Import docs into main repository (#2874)
* import docs into main repository Signed-off-by: Matti Ranta <matti@mdranta.net>
Diffstat (limited to 'docs/content/doc/installation/with-docker.zh-cn.md')
-rw-r--r--docs/content/doc/installation/with-docker.zh-cn.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/content/doc/installation/with-docker.zh-cn.md b/docs/content/doc/installation/with-docker.zh-cn.md
new file mode 100644
index 0000000000..983a0d1f88
--- /dev/null
+++ b/docs/content/doc/installation/with-docker.zh-cn.md
@@ -0,0 +1,42 @@
+---
+date: "2016-12-01T16:00:00+02:00"
+title: "从Docker安装"
+slug: "install-with-docker"
+weight: 10
+toc: true
+draft: false
+menu:
+ sidebar:
+ parent: "installation"
+ name: "从Docker安装"
+ weight: 10
+ identifier: "install-with-docker"
+---
+
+# 从Docker安装
+
+阅读本章之前我们已经假设您对docker已经有了解并能够正常使用docker。
+
+我们在 Docker Hub 的 Gitea 组织中提供了自动更新的 Docker 镜像,它会保持最新的稳定版。你也可以用其它 Docker 服务来更新。首先你需要pull镜像:
+
+```
+docker pull gitea/gitea:latest
+```
+
+如果要将git和其它数据持久化,你需要创建一个目录来作为数据存储的地方:
+
+```
+sudo mkdir -p /var/lib/gitea
+```
+
+然后就可以运行 docker 容器了,这很简单。 当然你需要定义端口数数据目录:
+
+```
+docker run -d --name=gitea -p 10022:22 -p 10080:3000 -v /var/lib/gitea:/data gitea/gitea:latest
+```
+
+然后 容器已经运行成功,在浏览器中访问 http://hostname:10080 就可以看到界面了。你可以尝试在上面创建项目,clone操作 `git clone ssh://git@hostname:10022/username/repo.git`.
+
+## 需要帮助?
+
+如果从本页中没有找到你需要的内容,请访问 [帮助页面]({{< relref "seek-help.zh-cn.md" >}})