Error while updating wordpress plugins

Hi
I have two completely independent servers, each with around 30 sites installed. I work with Docker containers and a Cloudflare tunnel.
Since last week, when I try to update plugins via the WordPress interface, after successfully updating about 5 or 6 plugins, it starts to fail randomly on any plugin. I get different error messages, but often it says that it was unable to write to the upgrade directories. In fact, it even deletes the folder with the plugin files.
There’s nothing in the logs, no permission issues. It happens on both servers.
I was able to work around the issue by using MainWP, with which all updates work fine.
I try :
define(‘WP_MEMORY_LIMIT’, ‘256M’); : plugins update fail
define(‘WP_TEMP_DIR’, ABSPATH . ‘wp-content/temp’); and create wp-content/temp directory : plugins update fail
Update the stack : plugins update fail

I don’t have any other ideas
Thanks !!

My docker container

version: '2'

services:

   wordpress:
     image: wordpress:php8.2
     volumes:
       - /home/myuser/sites/test-dev:/var/www/html
     ports:
       - 8006:80
     restart: always
     networks:
       - web
     environment:
       WORDPRESS_DB_HOST: database:3306
       WORDPRESS_DB_USER: ****
       WORDPRESS_DB_PASSWORD: ****
       WORDPRESS_DB_NAME: ****
       WORDPRESS_TABLE_PREFIX: ****

networks:
  web:
    external: true