Seafile Docker upgrade from 8.0.7fails

Hi,
Docker Seafile 8.0.7 is running fine.
Upgrade to 8.0.7-1 runs fine.
Upgrade to any later version (9.0.0, latest) fails with error messages in the container log.

*** Running /etc/my_init.d/01_create_data_links.sh...
*** Booting runit daemon...
*** Runit started as PID 25
*** Running /scripts/enterpoint.sh...
2023-05-15 10:22:11 Waiting Nginx 
2023-05-15 10:22:12 Nginx ready 
2023-05-15 10:22:12 This is a idle script (infinite loop) to keep container running. 
[05/15/2023 10:22:12][upgrade]: The container was recreated, start fix the media symlinks
mv: cannot stat '/opt/seafile/seafile-server-8.0.7/seahub/media/avatars/*': No such file or directory
[2023-05-15 10:22:12] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
Traceback (most recent call last):
  File "/scripts/start.py", line 86, in <module>
    main()
  File "/scripts/start.py", line 58, in main
    check_upgrade()
  File "/scripts/upgrade.py", line 95, in check_upgrade
    fix_media_symlinks()
  File "/scripts/upgrade.py", line 79, in fix_media_symlinks
    call('mv -n %s/* %s' % (avatars_dir, dst_avatars_dir))
  File "/scripts/utils.py", line 70, in call
    return subprocess.check_call(*a, **kw)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'mv -n /opt/seafile/seafile-server-8.0.7/seahub/media/avatars/* /shared/seafile/seahub-data/avatars' returned non-zero exit status 1.

Any ideas?
Thanks
Manfred

got the same error now with upgrading from 11.0.6 to 11.0.8. What is the solution?

Edit:
Fixed. While recreating the container its important to change the env flag to the right version. I think everyone will encounter this issue in some case. Is it possible to abandoned this flag?