opencast / opencast-docker

Dockerfiles for Opencast
https://quay.io/organization/opencast/
Educational Community License v2.0
41 stars 36 forks source link

UnknownHostException with docker-compose.allinone.hsql #1

Closed bwulff closed 8 years ago

bwulff commented 8 years ago

Tried docker-compose.allinone.hsql.yml on Mac using the command line from the README.

OC was not able to register services at its service registry. Cause was an UnknownHostException saying 'Unknown host opencast'.

Changing the host to localhost:8080 in line 30 solved the issue for me.

I'm new to docker so maybe I just did not configure my machine right. Wanted to report though.

JanKoppe commented 8 years ago

Yes, you would need to change the hostname. Maybe it would be a good idea to make localhost the default. Let's see what @mtneug has to say about that. Should be done for all files then.

mtneug commented 8 years ago

Thank you for reporting @bwulff. As stated in the README the hostname in ORG_OPENCASTPROJECT_SERVER_URL should be changed to one that can be resolved:

Before you start the system, you probably should change ORG_OPENCASTPROJECT_SERVER_URL to a proper hostname or IP address in docker-compose/docker-compose.allinone.hsql.yml.

Setting it to localhost by default is probably the best alternative which was done in #2. However if you run the Docker Engine in a virtual machine, for example with docker-machine, localhost will not be correct. Currently this is necessary if you use Docker on Mac OS X or Windows. Adapting the hostname is thus still relevant.

I will close issue, feel free to open it if you think it it not yet resolved. Once again thanks for reporting.