scline / docker-cacti

Cacti version 1+ under Docker
113 stars 57 forks source link

no listening sockets available, shutting down #77

Closed luelco closed 4 years ago

luelco commented 4 years ago

Hi Guys,

I'm new to docker so sorry for the odd questions.

I want to launch a container on my Synology device. But when I choose "Use the same network as Docker Host" I cannot change the port settings. I think this is the reason that I'm getting the following error's:

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs

Is it also possible to add port as a variable in the Advanced Settings? Or do I have anyother options?

scline commented 4 years ago

Sorry I am not familiar with Synology, a glance at there documentation that option does appear to be what you need image

Should be something like: HTTP Local Port: 80 <---- Change this to something else, ex 8080 Container Port: 80 Type: TCP

HTTPS Local Port: 443 <---- Change this to something else, ex 8443 Container Port: 443 Type: TCP

From that log your Synology likely is using port 80/443 to run its services and you cant attach two applications to a single port.

luelco commented 4 years ago

Thank you for your reply, but when you choose "Use the same network as Docker Host" you can't change the port settings. Capture

luelco commented 4 years ago

Sorry for the misunderstanding, is it also possible to add port as a Environment variable in the Advanced Settings?

luelco commented 4 years ago

Hi All, I managed to Free up port 80/443 on Synology DSM. So now this is no issue anymore. But now the container freeze at HTTPD service.

I notice that someone else had this issue also and this was solved with option -d. I guess this was done on the CLI. What does this do and can I add this option to the GUI?

luelco commented 4 years ago

Hi scline,

You can close this issue. My issue is now the HTTPD service.