I am trying to run the docker seafileltd/seafile-mc:11.0.5-arm as another user.
My docker-compose looks like this:
seafile:
image: seafileltd/seafile-mc:11.0.5-arm
user: 1007:1007
However, as soon as I place the user: line in the docker-compose, seafile will not start:
$ docker logs seafile
*** Killing all processes…
Traceback (most recent call last):
File “/sbin/my_init”, line 414, in
main(args)
File “/sbin/my_init”, line 330, in main
import_envvars(False, False)
File “/sbin/my_init”, line 90, in import_envvars
for envfile in listdir(“/etc/container_environment”):
File “/sbin/my_init”, line 74, in listdir
return sorted(os.listdir(path))
PermissionError: [Errno 13] Permission denied: ‘/etc/container_environment’
The same user: directive in the same docker-compose for the containers mysql and memcached give no problem; it is the seafile container that doesn’t seem to like it.
I have docker running as non root. The problem I am trying to solve is that the files created in the seafile-data folder are not owned by the user running docker.
Can anybody help? TIA.