Websoft9 / docker-library

Docker Compose examples of selfhosted FOSS based on official image, just run it.
https://www.websoft9.com
Other
30 stars 14 forks source link

complete docker-compose.yml for [woocommerce] #620

Open chendelin1982 opened 1 month ago

chendelin1982 commented 1 month ago

What type of your feature request?

qiaofeng1227 commented 1 month ago

wordpress镜像本身没有cli,只有cli镜像才有cli命令。 wp plugin install 需要等待初始化完成,管理员设置完毕才能安装,如何处理这个问题?

qiaofeng1227 commented 1 month ago

初始化前

URL is not IP
Error: The site you have requested is not installed.
Run `wp core install` to create database tables.
Error: The site you have requested is not installed.
Run `wp core install` to create database tables.
Error: The site you have requested is not installed.
Run `wp core install` to create database tables

初始化后

URL is not IP
Success: Value passed for 'home' option is unchanged.
Success: Value passed for 'siteurl' option is unchanged.
Installing WooCommerce (8.9.1)
正在从 https://downloads.wordpress.org/plugin/woocommerce.8.9.1.zip 下载安装包…
Using cached file '/home/www-data/.wp-cli/cache/plugin/woocommerce-8.9.1.zip'...
正在解压缩安装包...
Warning: 无法创建目录。 "/var/www/html/wp-content/upgrade/woocommerce.8.9.1-iGlAdt"
Warning: The 'woocommerce' plugin could not be found.
Error: No plugins installed.
qiaofeng1227 commented 4 weeks ago

进入容器操作也一样

3c7ccc9c1f1b:/var/www/html$ wp plugin install woocommerce --activate
Installing WooCommerce (8.9.2)
正在从 https://downloads.wordpress.org/plugin/woocommerce.8.9.2.zip 下载安装包…
正在解压缩安装包...
Warning: 无法创建目录。 "/var/www/html/wp-content/upgrade/woocommerce.8.9.2"
Warning: The 'woocommerce' plugin could not be found.
Error: No plugins installed.
3c7ccc9c1f1b:/var/www/html$