【发布时间】:2020-08-31 03:05:43
【问题描述】:
我已经在 Rancher 中安装了 Worpress,(docker.io/bitnami/wordpress:5.3.2-debian-10-r43) 我必须让 wp-config 可写,但我卡住了,当获取此 pod 内的 shell 以 root 身份登录:
kubectl exec -t -i --namespace=annuaire-p-brqcw annuaire-p-brqcw-wordpress-7ff856cd9f-l9gf7 bash
我无法登录到 root,密码与 Bitnami Wordpress 安装不匹配。
wordpress@annuaire-p-brqcw-wordpress-7ff856cd9f-l9gf7:/$ su root
Password:
su: Authentication failure
什么是默认密码,或者如何更改?
我真的需要你的帮助!
【问题讨论】:
-
嗨。抱歉,您的问题听起来有点不对劲。你是如何“在 Rancher 中安装 wordpress”的?我猜您以某种方式将您命名的 docker 映像部署到了 Kubernetes 集群?无论如何更改容器“中”的任何文件都没有多大意义,因为当重新创建 pod 或更新部署时,更改将被删除。也许看看 bitnami helm 文档以了解组件如何工作和交互github.com/bitnami/charts/tree/master/bitnami/wordpress
-
是的我知道,但是只是为了测试,我需要导入一个迁移文件,而且我的wp-config配置这个文件太大了。
-
它在舵图的文档中
The Bitnami WordPress image was migrated to a "non-root" user approach.Consequences: - The HTTP/HTTPS ports exposed by the container are now 8080/8443 instead of 80/443. - No writing permissions will be granted on wp-config.php by default.
标签: wordpress shell kubernetes kubectl rancher