# WordPress

## 基本訊息

[WordPress](https://en.wikipedia.org/wiki/WordPress) 是開源的 Blog 和內容管理系統框架，它基於 PHP 和 MySQL。 該倉庫提供了 WordPress 4.0 版本的映像檔。

## 使用方法

啟動容器需要 MySQL 的支援，預設連接埠為 `80`。

```
$ sudo docker run --name some-wordpress --link some-mysql:mysql -d wordpress
```

啟動 WordPress 容器時可以指定的一些環境參數包括

* `-e WORDPRESS_DB_USER=...` 預設為 “root”
* `-e WORDPRESS_DB_PASSWORD=...` 預設為連線 mysql 容器的環境變量 `MYSQL_ROOT_PASSWORD` 的值
* `-e WORDPRESS_DB_NAME=...` 預設為 “wordpress”
* `-e WORDPRESS_AUTH_KEY=...` 、 `-e WORDPRESS_SECURE_AUTH_KEY=...` 、 `-e WORDPRESS_LOGGED_IN_KEY=...` 、 `-e WORDPRESS_NONCE_KEY=...` 、 `-e WORDPRESS_AUTH_SALT=...` 、 `-e WORDPRESS_SECURE_AUTH_SALT=...` 、 `-e WORDPRESS_LOGGED_IN_SALT=...` 、 `-e WORDPRESS_NONCE_SALT=...` 預設為隨機 SHA1 串

## Dockerfile

* [4.0 版本](https://github.com/docker-library/wordpress/blob/aee00669e7c43f435f021cb02871bffd63d5677a/Dockerfile)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://philipzheng.gitbook.io/docker_practice/appendix_repo/wordpress.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
