CollaboraOnline / Docker-CODE

Dockerfile and scripts to generate CODE Docker image
147 stars 67 forks source link

Problem building Image from Dockerfile #21

Open hollowdew opened 6 years ago

hollowdew commented 6 years ago

Hello guys, I'm wondering why I can't build a simple image from your Dockerfile. I did the following: Downloaded git repo (Dockerfile and script-Directory containing install-libreoffice.sh and start-libreoffice.sh) and did a chmod 777 -R to all files in my curernt Directory. So everything is untouched, right? Then I insert the command:

docker build -t test Allright, then build a container with the following command:

docker run -t -d -p 9980:9980 -e "DONT_GEN_SSL_CERT=true" -e "server_name=documentserver\.my\.domain\.de" -e 'domain=owncloud\.my\.domain\.de' --name containername -v /app/collabora/loolwsd/:/etc/loolwsd/ -e "username=admin" -e "password=pass" --dns=my-dns-ip-addr --restart always --cap-add MKNOD test

--> Container is running but restarts all the time "docker logs containername" shows me the following: "rm: cannot remove '/opt/lool/systemplate/etc/resolv.conf': No such file or directory ln: failed to create symbolic link '/opt/lool/systemplate/etc/resolv.conf': No such file or directory" AND "No passwd entry for user 'lool'"

Something is wrong right? Actually I don't need to change anything from your Dockerfile or script, am I wrong?

Everything is original and the files are available.... Someone have a solution?

Thank you for helping me :) Good Day Hollowdew ;)

hollowdew commented 6 years ago

The same problem occurs if I just use the standard docker run [...] command from the website, so without any information like servername or something else. I still can't even run docker exec -it containerName bash

varac commented 6 years ago

Dear Collabora Online Team, please document how to properly build a docker image myself (and run it successfully).