Some scripts can fail to run inside Docker container while working fine in the host machine. One of the possible reasons might be that script\program is trying to rename a directory inside the Docker container.
The reason you can't rename a mounted folder in a Docker container is because of how Docker volumes work. When you mount a volume to a Docker container, Docker is essentially creating a link between the host's file system and the container's file system. This link allows the container to read and write data to the host's file system.
If you try to rename the directory inside the container, you're effectively trying to change the path that has been set up to link the container and the host. Docker doesn't allow this because it would break the connection between the host and the container. The mount point's name inside the container is determined at container creation time and can't be changed afterward.
Faced when trying to use
strapi transfer
utility.
https://github.com/strapi/strapi/pull/17275