WordPress is the world's most popular blogging and content management platform. Powerful yet simple, everyone from students to global corporations use it to build beautiful, functional websites.
Overview of WordPress Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
consoledocker run --name wordpress REGISTRY_NAME/bitnami/wordpress:latest
NOTE This quick setup is only intended for development environments. You are encouraged to change the insecure default credentials and check out the available configuration options in the Environment Variables section for a more secure deployment.
Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the https://github.com/bitnami/charts/tree/master/bitnami/wordpress.
Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers in our docs.
Dockerfile linksLearn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.
You can see the equivalence between the different tags by taking a look at the tags-info.yaml file present in the branch folder, i.e bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml.
Subscribe to project updates by watching the https://github.com/bitnami/containers.
The recommended way to get the Bitnami WordPress Docker Image is to pull the prebuilt image from the https://hub.docker.com/r/bitnami/wordpress.
consoledocker pull REGISTRY_NAME/bitnami/wordpress:latest
To use a specific version, you can pull a versioned tag. You can view the https://hub.docker.com/r/bitnami/wordpress/tags/ in the Docker Hub Registry.
consoledocker pull REGISTRY_NAME/bitnami/wordpress:[TAG]
If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the docker build command. Remember to replace the APP, VERSION and OPERATING-SYSTEM path placeholders in the example command below with the correct values.
consolegit clone https://github.com/bitnami/containers.git cd bitnami/APP/VERSION/OPERATING-SYSTEM docker build -t REGISTRY_NAME/bitnami/APP:latest .
WordPress requires access to a MySQL or MariaDB database to store information. We'll use the https://github.com/bitnami/containers/tree/main/bitnami/mariadb for the database requirements.
If you remove the container all your data will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.
For persistence you should mount a directory at the /bitnami/wordpress path. If the mounted directory is empty, it will be initialized on the first run. Additionally you should https://github.com/bitnami/containers/blob/main/bitnami/mariadb#persisting-your-database.
To avoid inadvertent removal of volumes, you can mount host directories as data volumes. Alternatively you can make use of volume plugins to host the volume data.
NOTE Because this is a non-root container, the mounted files and directories must have the proper permissions for the UID
1001.
The following section describes environment variables and FIPS configuration.
The following tables list the main variables you can set.
Customizable environment variables
| Name | Description | Default Value |
|---|---|---|
WORDPRESS_DATA_TO_PERSIST | Files to persist relative to the WordPress installation directory. To provide multiple values, separate them with a whitespace. | wp-config.php wp-content |
WORDPRESS_ENABLE_HTTPS | Whether to enable HTTPS for WordPress by default. | no |
WORDPRESS_BLOG_NAME | WordPress blog name. | "User's blog" |
WORDPRESS_SCHEME | Scheme to generate application URLs. Deprecated by WORDPRESS_ENABLE_HTTPS. | http |
WORDPRESS_HTACCESS_OVERRIDE_NONE | Set the Apache AllowOverride variable to None. All the default directives will be loaded from /opt/bitnami/wordpress/wordpress-htaccess.conf. | yes |
WORDPRESS_ENABLE_HTACCESS_PERSISTENCE | Persist the custom changes of the htaccess. It depends on the value of WORDPRESS_HTACCESS_OVERRIDE_NONE, when yes it will persist /opt/bitnami/wordpress/wordpress-htaccess.conf if no it will persist /opt/bitnami/wordpress/.htaccess. | no |
WORDPRESS_RESET_DATA_PERMISSIONS | Force resetting ownership/permissions on persisted data when initializing, otherwise it assumes the ownership/permissions are correct. Ignored when running as non-root. | no |
WORDPRESS_TABLE_PREFIX | Table prefix to use in WordPress. | wp_ |
WORDPRESS_PLUGINS | List of WordPress plugins to install and activate, separated via commas. Can also be set to all to activate all currently installed plugins, or none to skip. | none |
WORDPRESS_EXTRA_INSTALL_ARGS | Extra flags to append to the WordPress 'wp core install' command call. | nil |
WORDPRESS_EXTRA_CLI_ARGS | Extra flags to append to all WP-CLI command calls. | nil |
WORDPRESS_EXTRA_WP_CONFIG_CONTENT | Extra configuration to append to wp-config.php during install. | nil |
WORDPRESS_SKIP_BOOTSTRAP | Whether to perform initial bootstrapping for the application. | no |
WORDPRESS_AUTO_UPDATE_LEVEL | Level of auto-updates to allow for the WordPress core installation. Valid values: major, minor, none. | none |
WORDPRESS_AUTH_KEY | Value of the AUTH_KEY | nil |
WORDPRESS_SECURE_AUTH_KEY | Value of the SECURE_AUTH_KEY | nil |
WORDPRESS_LOGGED_IN_KEY | Value of the LOGGED_IN_KEY | nil |
WORDPRESS_NONCE_KEY | Value of the NONCE_KEY | nil |
WORDPRESS_AUTH_SALT | Value of the AUTH_SALT | nil |
WORDPRESS_SECURE_AUTH_SALT | Value of the SECURE_AUTH_SALT | nil |
WORDPRESS_LOGGED_IN_SALT | Value of the LOGGED_IN_SALT | nil |
WORDPRESS_NONCE_SALT | Value of the NONCE_SALT | nil |
WORDPRESS_ENABLE_REVERSE_PROXY | Enable WordPress support for reverse proxy headers | no |
WORDPRESS_ENABLE_XML_RPC | Enable the WordPress XML-RPC endpoint | no |
WORDPRESS_USERNAME | WordPress user name. | user |
WORDPRESS_PASSWORD | WordPress user password. | bitnami |
WORDPRESS_EMAIL | WordPress user e-mail address. | user@example.com |
WORDPRESS_FIRST_NAME | WordPress user first name. | UserName |
WORDPRESS_LAST_NAME | WordPress user last name. | LastName |
WORDPRESS_ENABLE_MULTISITE | Enable WordPress Multisite configuration. | no |
WORDPRESS_MULTISITE_NETWORK_TYPE | WordPress Multisite network type to enable. Valid values: subfolder, subdirectory, subdomain. | subdomain |
WORDPRESS_MULTISITE_EXTERNAL_HTTP_PORT_NUMBER | External HTTP port for WordPress Multisite. | 80 |
WORDPRESS_MULTISITE_EXTERNAL_HTTPS_PORT_NUMBER | External HTTPS port for WordPress Multisite. | 443 |
WORDPRESS_MULTISITE_HOST | WordPress hostname/address. Only used for Multisite installations. | nil |
WORDPRESS_MULTISITE_ENABLE_NIP_IO_REDIRECTION | Whether to enable IP address redirection to nip.io wildcard DNS when enabling WordPress Multisite. This is only supported when running on an IP address with subdomain network type. | no |
WORDPRESS_MULTISITE_FILEUPLOAD_MAXK | Maximum upload file size allowed for WordPress Multisite uploads, in kilobytes. | 81920 |
WORDPRESS_SMTP_HOST | WordPress SMTP server host. | nil |
WORDPRESS_SMTP_PORT_NUMBER | WordPress SMTP server port number. | nil |
WORDPRESS_SMTP_USER | WordPress SMTP server user. | nil |
WORDPRESS_SMTP_FROM_EMAIL | WordPress SMTP from email. | ${WORDPRESS_SMTP_USER} |
WORDPRESS_SMTP_FROM_NAME | WordPress SMTP from name. | ${WORDPRESS_FIRST_NAME} ${WORDPRESS_LAST_NAME} |
WORDPRESS_SMTP_PASSWORD | WordPress SMTP server user password. | nil |
WORDPRESS_SMTP_PROTOCOL | WordPress SMTP server protocol to use. | nil |
WORDPRESS_DATABASE_HOST | Database server host. | $WORDPRESS_DEFAULT_DATABASE_HOST |
WORDPRESS_DATABASE_PORT_NUMBER | Database server port. | 3306 |
WORDPRESS_DATABASE_NAME | Database name. | bitnami_wordpress |
WORDPRESS_DATABASE_USER | Database user name. | bn_wordpress |
WORDPRESS_DATABASE_PASSWORD | Database user password. | nil |
WORDPRESS_ENABLE_DATABASE_SSL | Whether to enable SSL for database connections. | no |
WORDPRESS_VERIFY_DATABASE_SSL | Whether to verify the database SSL certificate when SSL is enabled for database connections. | yes |
WORDPRESS_DATABASE_SSL_CERT_FILE | Path to the database client certificate file. | nil |
WORDPRESS_DATABASE_SSL_KEY_FILE | Path to the database client certificate key file. | nil |
WORDPRESS_DATABASE_SSL_CA_FILE | Path to the database server CA bundle file. | nil |
WORDPRESS_OVERRIDE_DATABASE_SETTINGS | Override the database settings in persistence. | no |
Read-only environment variables
| Name | Description | Value
_Note: the README for this container is longer than the DockerHub length limit of 25000, so it has been trimmed. The full README can be found at [***]
以下是 bitnami/wordpress 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。


探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务