translate appendix_repo and appendix_resources into traditional chinese

This commit is contained in:
a504082002
2014-11-18 21:01:27 +08:00
parent 0a084995ce
commit c56ccb9c8a
10 changed files with 52 additions and 52 deletions

View File

@@ -1,34 +1,34 @@
## [Nginx](https://registry.hub.docker.com/_/nginx/)
### 基本信息
[Nginx](https://en.wikipedia.org/wiki/Nginx) 是源的高效的 Web 服务器实现,支持 HTTP、HTTPS、SMTP、POP3、IMAP 等协议
该仓库提供了 Nginx 1.0 ~ 1.7 各版本的像。
[Nginx](https://en.wikipedia.org/wiki/Nginx) 是源的高效的 Web 服務器實現,支持 HTTP、HTTPS、SMTP、POP3、IMAP 等協議
該倉庫提供了 Nginx 1.0 ~ 1.7 各版本的像。
### 使用方法
下面的命令将作为一个静态页面服务器启动
下面的命令將作為一個靜態頁面服務器啟動
```
$ sudo docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d nginx
```
也可以不使用这种映射方式,通利用 Dockerfile 直接将静态页面内容放到像中,内容为
也可以不使用這種映射方式,通利用 Dockerfile 直接將靜態頁面內容放到像中,內容為
```
FROM nginx
COPY static-html-directory /usr/share/nginx/html
```
生成新的像,并启动一个容器。
生成新的像,並啟動一個容器。
```
$ sudo docker build -t some-content-nginx .
$ sudo docker run --name some-nginx -d some-content-nginx
```
放端口,映射到本地的 `8080` 端口。
放端口,映射到本地的 `8080` 端口。
```
sudo docker run --name some-nginx -d -p 8080:80 some-content-nginx
```
Nginx的默配置文件路径为 `/etc/nginx/nginx.conf`,可以通映射它使用本地的配置文件,例如
Nginx的默配置文件路徑為 `/etc/nginx/nginx.conf`,可以通映射它使用本地的配置文件,例如
```
docker run --name some-nginx -v /some/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx
```
使用配置文件时,为了在容器中正常行,需要保持 `daemon off;`
使用配置文件時,為了在容器中正常行,需要保持 `daemon off;`
### Dockerfile
* [1 ~ 1.7 版本](https://github.com/nginxinc/docker-nginx/blob/3713a0157083eb4776e71f5a5aef4b2a5bc03ab1/Dockerfile)