Failed to install from docker show Too many levels of symbolic links

Hi all,
I am testing the docker seafile 7.4 version.
If i use the offical image do a fresh installation no issue.
However when I try to conver the running container to my own version seafile image.
There always has error show “Too many levels of symbolic links”
I checked both
/etc/my_init.d/01_create_data_links.sh ----> need to remove the /shared/logs/var-log folder then can pass the script

/etc/my_init.d/10_syslog-ng.init —> no idea… it will always show
/bin/chown: cannot dereference ‘/var/log’: Too many levels of symbolic links
however after run 01_create_data_links.sh, the softlink already createed to /var/log
anyone can help on it?

I launch a container and try to manually test it by running these 2 scripts one by one.
01 is past after removed the folder /shared/logs/var-log

root@01a2654ce733:/opt/seafile# /etc/my_init.d/01_create_data_links.sh
mv: failed to access ‘/shared/logs/var-log’: Too many levels of symbolic links
root@01a2654ce733:/opt/seafile# rm -rf /shared/logs/var-log
root@01a2654ce733:/opt/seafile# /etc/my_init.d/01_create_data_links.sh
root@01a2654ce733:/opt/seafile# echo $?
0
root@01a2654ce733:/opt/seafile# ll
total 28
drwxr-xr-x 1 root root 4096 Oct 4 02:53 ./
drwxr-xr-x 1 root root 4096 Aug 15 03:37 …/
lrwxrwxrwx 1 root root 21 Oct 3 18:56 ccnet -> /shared/seafile/ccnet
lrwxrwxrwx 1 root root 20 Oct 3 18:56 conf -> /shared/seafile/conf
drwxr-xr-x 3 root root 4096 Oct 3 09:26 conf.bkp/
drwxr-xr-x 1 root root 4096 Oct 3 18:30 .git/
lrwxrwxrwx 1 root root 20 Oct 4 02:53 logs -> /shared/logs/seafile/
drwxr-xr-x 1 root root 4096 Oct 3 18:57 pids/
-rw-r–r-- 1 root root 58 Oct 2 16:05 README.md
lrwxrwxrwx 1 root root 28 Oct 3 18:56 seafile-data -> /shared/seafile/seafile-data
drwxr-xr-x 1 root root 4096 Oct 1 10:04 seafile-server-7.0.4/
lrwxrwxrwx 1 root root 20 Oct 3 18:56 seafile-server-latest -> seafile-server-7.0.4/
lrwxrwxrwx 1 root root 27 Oct 3 18:56 seahub-data -> /shared/seafile/seahub-data
root@01a2654ce733:/opt/seafile# cd logs
root@01a2654ce733:/opt/seafile/logs# ls
root@01a2654ce733:/opt/seafile/logs# cd …
root@01a2654ce733:/opt/seafile# ls
ccnet conf conf.bkp logs pids README.md seafile-data seafile-server-7.0.4 seafile-server-latest seahub-data
root@01a2654ce733:/opt/seafile# /etc/my_init.d/10_syslog-ng.init
/bin/chown: cannot dereference ‘/var/log’: Too many levels of symbolic links
root@01a2654ce733:/opt/seafile# ls -ld /var/log
lrwxrwxrwx 1 root root 20 Oct 4 02:53 /var/log -> /shared/logs/var-log
root@01a2654ce733:/opt/seafile#