Docker automatically terminates after a minute within the container /opt/seafile/seafile-server-latest/seafile.sh stop

docker

#1

Dear Community,

i try to import files from local harddrive with the seafile import script which would be this command:
sudo docker exec -it seafile /opt/seafile/seafile-server-latest/seaf-import.sh -p /import/files/ -n 'myFiles' -u user

But to make the import i have to shutdown the seafile server beforehand.

that should not be a huge problem by doing so with:
sudo docker exec -it seafile /opt/seafile/seafile-server-latest/seafile.sh stop

But there is the problem:
After stoping the seafile server with the script within the container the seafile container terminates itself. That seams to me like a built in mechanism from the seafile docker bootstrap script or something like that.

So i cant even fire up the import job because the container stops every time after around a minute. Is there a way to keep the seafile-container running to run my import job?

i am running the seafile pro docker image according the documentation:
(Install of the docker using the seafile pro registry)
sudo docker run -d --name seafile
-e SEAFILE_SERVER_LETSENCRYPT=true
-e SEAFILE_SERVER_HOSTNAME=mydomaincom
-e SEAFILE_ADMIN_EMAIL=admin@mydomaincom
-e SEAFILE_ADMIN_PASSWORD=mysupersecretpasswd
-v /local/seafile_data:/shared
-p 80:80
-p 443:443
docker.seadrive.org/seafileltd/seafile-pro:latest

That means i am running the seafile-pro-server-6.2.13 docker image.

I am going so far that i am confirming my thesis: I found the responsible script (/scripts/start.py) within the container . The first lines of the script commenting the following:

“”"
Starts the seafile/seahub server and watches the controller process. It is
the entrypoint command of the docker container.
“”"

Would be really glad if somebody could help me out there. Without the possibility to mass import the files seafile seams to me useless. With those tons of data using the webbrowser for importing would not be a solution either. Last but not least switching to a “bare metal” install without docker is something that i wouldn’t do either.

with best regards and thanks in advance
satheras