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

How to install Wordpress updates on Google Container Engine?

我最近在 these instructions 之后设置了一个托管在 Container Engine 上的 Wordpress 站点。现在我连接到 wordpress wp-admin 页面并尝试更新最新的 Wordpress 版本更新。所以我点击 Dashboard->Updates->Update Now 导致了这个错误:

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

我是 kubernetes 的新手,似乎无法找到如何通过 gcloud 控制台连接到 运行 wordpress 容器,并查看 wordpress 文件并查看是否存在任何权限问题修复那里。帮忙?

我不确定权限问题,但您可以使用 kubectl exec 进行调试。

如果您有一个名为 wordpress-abcde 的 pod,您应该能够 运行 kubectl exec wordpress-abcde -i -t sh 在其中的(唯一)容器中打开一个 shell荚。这是 kubectl exec.

的文档