NC 16 docker - Using external storage, getting error while deleting a folder

I’m using docker nextcloud. I created a clean instance and I want to use the application external storage. I managed to configure successfully a local storage using the following command :

mount_id=$(docker exec --user 1000 nextcloud php occ files_external:create Home local null::null -c datadir=/var/www/data --output=json)
docker exec --user 1000 nextcloud php occ files_external:applicable --add-user=foo "$mount_id"

I can create/move/copy folder and files but when I want to delete a created folder I got the following error :

Error deleting file “folderfoo”.

It’s says it’s a file but actually it was a folder. After refreshing the browser the folder is deleted. By the way I can successfully delete files.
I’m using this image Docker
I added the right user permission on the docker container and the data folder.

The folder data is under the right user (1000).

I also configured a redis container and linked it to my nextcloud container with -e REDIS_HOST="redis" and it give me the following in config.php :

'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
 array (
        'host' => 'redis',
        'port' => 6379,
    ),

Here is my command line to create a container :

docker run -d \
  --name=nextcloud \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Europe/Paris \
  -p 443:443 \
  -p 8080:80 \
  -v /home/foouser/nextcloud:/config \
  -v /home/foouser/data:/local_data \
  --restart unless-stopped \
  linuxserver/nextcloud

I also tried with the official docker nextcloud, I get the same issue.
I don’t know what I’m supposed to do, thanks for any help