hadim / docker-omero

Set of Dockerfile to build a ready-to-use OMERO server
MIT License
15 stars 15 forks source link

tcp 0.0.0.0:80: bind: address already in use #9

Closed maxgittelman closed 6 years ago

maxgittelman commented 6 years ago

I used the newest version of docker. Freshly installed DockerCE v17 and Docker-compose. Any ideas on how to fix this?

maxgitt@mgpc:~/workspace/omero/docker-omero$ docker-compose up Creating omero-data ... Creating omero-data ... done Creating omero-db ... Creating omero-db ... done Creating omero-server ... Creating omero-server ... done Creating omero-web ... Creating omero-web ... error

ERROR: for omero-web Cannot start service omero-web: driver failed programming external connectivity on endpoint omero-web (071a78ba08120c826fc696ca01f55e21ffd04f4f44ae46a3d58212c861189f25): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use

ERROR: for omero-web Cannot start service omero-web: driver failed programming external connectivity on endpoint omero-web (071a78ba08120c826fc696ca01f55e21ffd04f4f44ae46a3d58212c861189f25): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use ERROR: Encountered errors while bringing up the project.

maxgittelman commented 6 years ago

I had previously tried installing OMERO via the Ubuntu instructions which left an nginx daemon running. I located the port being used via:

sudo netstat -tulpn | grep :80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1027/nginx -g daemo

And killed the process:

maxgitt@mgpc:~/workspace$ ps aux | grep nginx
root      1027  0.0  0.0 125092  1464 ?        Ss   Oct04   0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data  1028  0.0  0.0 125440  3172 ?        S    Oct04   0:02 nginx: worker process
www-data  1029  0.0  0.0 125440  3172 ?        S    Oct04   0:00 nginx: worker process
www-data  1030  0.0  0.0 125440  3172 ?        S    Oct04   0:02 nginx: worker process
www-data  1031  0.0  0.0 125440  3172 ?        S    Oct04   0:02 nginx: worker process
www-data  1032  0.0  0.0 125440  3172 ?        S    Oct04   0:02 nginx: worker process
www-data  1033  0.0  0.0 125440  3172 ?        S    Oct04   0:02 nginx: worker process
www-data  1034  0.0  0.0 125440  3172 ?        S    Oct04   0:02 nginx: worker process
www-data  1035  0.0  0.0 125440  3172 ?        S    Oct04   0:02 nginx: worker process
maxgitt  26287  0.0  0.0  14224  1092 pts/18   S+   17:11   0:00 grep --color=auto nginx
maxgitt@mgpc:~/workspace$ sudo kill 1027