diff options
author | techknowlogick <techknowlogick@users.noreply.github.com> | 2017-11-26 16:44:32 -0500 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-11-26 23:44:32 +0200 |
commit | fb5c6b644460f94acb8976ad35165230b9d47fb2 (patch) | |
tree | 3811cb3807a9f666e77743cc0fc8bcea4276f421 /docs/content/doc/installation/with-docker.zh-tw.md | |
parent | f148a4a1ed55c75d391930865185fb7bfbee03ba (diff) | |
download | gitea-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-tw.md')
-rw-r--r-- | docs/content/doc/installation/with-docker.zh-tw.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/content/doc/installation/with-docker.zh-tw.md b/docs/content/doc/installation/with-docker.zh-tw.md new file mode 100644 index 0000000000..960c23187e --- /dev/null +++ b/docs/content/doc/installation/with-docker.zh-tw.md @@ -0,0 +1,40 @@ +--- +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 Hub 提供了自動更新的映像檔,它會保持最新穩定版。根據您的部屬環境來使用最新版本或用其他服務來更新 Docker 映像檔。首先您需要下載映像檔: + +``` +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 +``` + +然後 Gitea 容器已經開始運行,您可以透過個人喜愛的瀏覽器來訪問 http://hostname:10080,假如您想要開始 Clone 儲存庫,可以直接執行 `git clone ssh://git@hostname:10022/username/repo.git` 指令。 + +## 需要協助? + +如果本頁中無法解決您的問題,請直接到 [Discord server](https://discord.gg/NsatcWJ),在那邊可以快速得到協助。 |