简体   繁体   English

如何在Google Container Engine上安装Wordpress更新?

[英]How to install Wordpress updates on Google Container Engine?

I recently setup a Wordpress site hosted on Container Engine, following these instructions . 我最近按照以下说明设置了一个在Container Engine上托管的Wordpress网站。 Now I'm connected to wordpress wp-admin page and trying to update the latest Wordpress version updates. 现在,我已连接到wordpress wp-admin页面,并尝试更新最新的Wordpress版本更新。 So I click on Dashboard->Updates->Update Now which results in this error: 因此,我单击“仪表板”->“更新”->“立即更新”,这将导致此错误:

Unpacking the update…

The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

Installation Failed

I'm new to kubernetes, and can't seem to find how I can connect to the running wordpress container via the gcloud console, and look at wordpress files and see if there are any permission issues to fix there. 我是kubernetes的新手,似乎无法找到如何通过gcloud控制台连接到正在运行的wordpress容器的方法,并查看wordpress文件并查看是否存在任何可解决的权限问题。 Help? 救命?

I'm not sure about the permissions issues, but you can debug using kubectl exec . 我不确定权限问题,但是您可以使用kubectl exec进行调试。

If you have a pod named wordpress-abcde , you should be able to run kubectl exec wordpress-abcde -i -t sh to open up a shell in in the (only) container in that pod. 如果您有一个名为wordpress-abcde的容器,则应该能够运行kubectl exec wordpress-abcde -i -t sh在该容器的(仅)容器中打开一个外壳。 Here's the docs for kubectl exec . 这是kubectl exec的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM