docker icon indicating copy to clipboard operation
docker copied to clipboard

Option to disable IPv6

Open joshuajcoronado opened this issue 8 years ago • 6 comments

Problem

I am trying to run your docker container on my Unraid Server (which does not support IPv6). Please add an option to disable IPv6/expose the nginx settings.

A workaround

I fixed it by adding listen 80 default_server; in nginx.conf and building the image myself.

Potential solution

It'd be great if you exposed a way to edit the nginx configuration files.

Thanks!

joshuajcoronado avatar Feb 17 '17 07:02 joshuajcoronado

whats the problem if nginx listening on ipv4 and ipv6?

xsteadfastx avatar Feb 21 '17 08:02 xsteadfastx

Since IPv6 is unsupported on unraid, when the container spins up, it throws an error about an unsupported protocol and fault to start. I was able to resolve the error by listening only on IPv4.

joshuajcoronado avatar Feb 21 '17 20:02 joshuajcoronado

I'd like to see option to disable IPv4 :-)

Rurik19 avatar Feb 22 '17 10:02 Rurik19

im not sure about that. i thought nginx ignores it if ipv6 is missing.

xsteadfastx avatar Feb 23 '17 15:02 xsteadfastx

Hi, Same problem for me for a few days, infinite restart of the container and many logs indicate it :

2024/04/14 09:17:30 [emerg] 303#303: socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)

Thanks for considering this issue.

millecentdix avatar Apr 14 '24 09:04 millecentdix

Fix by creating a copy of https://github.com/wallabag/docker/blob/master/root/etc/nginx/nginx.conf and comment line 39 "listen [::0]:80;". Mounting the file by Docker volume at the place /etc/nginx/nginx.conf

millecentdix avatar May 01 '24 15:05 millecentdix