WordPress 是开源的 Blog 和内容管理系统框架,它基于 PHP 和 MySQL。
该仓库位于 https://hub.docker.com/_/wordpress/ ,提供了 WordPress 4.x ~ 5.x 版本的镜像。
https://hub.docker.com/_/wordpress/
启动容器需要 MySQL 的支持,默认端口为 80。
80
$ docker run --name some-wordpress --link some-mysql:mysql -d wordpress
启动 WordPress 容器时可以指定的一些环境变量包括:
WORDPRESS_DB_USER
root
WORDPRESS_DB_PASSWORD
MYSQL_ROOT_PASSWORD
WORDPRESS_DB_NAME
wordpress
请到 https://github.com/docker-library/docs/tree/master/wordpress 查看。
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8