I met this error again and I FINALLY resolved this issue. It is a mistake in the nginx config file.
location / {
try_files $uri $uri/ /index.php?$args; # <- change here
}
I can’t seem to reproduce it. Could you share the url when the error happened? You could also try recreating the docker instance from scratch and see if the error still occurs.
Thanks for your reply. I changed the docker image from wordpress:fpm to wordpress:latest and now the problem is fixed. I think it might be a problem to do with nginx php config.