Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

unable to access www port, maybe due to tcp4 instead of tcp6? #23

Closed
a1exus opened this issue Oct 6, 2015 · 3 comments
Closed

unable to access www port, maybe due to tcp4 instead of tcp6? #23

a1exus opened this issue Oct 6, 2015 · 3 comments

Comments

@a1exus
Copy link

a1exus commented Oct 6, 2015

I'm unable to access www port(
Is it because tcp6 instead of tcp4? How do I change it to?

root@alexus:~# docker ps
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS                                                              NAMES
48570566c9ff        phpdockerized_front   "/usr/bin/supervisord"   11 minutes ago      Up 11 minutes       0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:9000->9000/tcp   phpdockerized_front_1
c1bf107ed8c8        redis                 "/entrypoint.sh redis"   11 minutes ago      Up 11 minutes       0.0.0.0:6379->6379/tcp                                             phpdockerized_redis_1
f2573e644d56        memcached             "/entrypoint.sh memca"   11 minutes ago      Up 11 minutes       0.0.0.0:11211->11211/tcp                                           phpdockerized_memcached_1
73f093e94e8e        mysql                 "/entrypoint.sh mysql"   11 minutes ago      Up 11 minutes       0.0.0.0:3306->3306/tcp                                             phpdockerized_mysql_1
b4406538d92d        mongo                 "/entrypoint.sh mongo"   11 minutes ago      Up 11 minutes       0.0.0.0:27017->27017/tcp                                           phpdockerized_mongo_1
353a40553cf5        elasticsearch         "/docker-entrypoint.s"   11 minutes ago      Up 11 minutes       0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp                     phpdockerized_elasticsearch_1
root@alexus:~# netstat -tan | egrep 'tcp.*\:(80|443|9000).*LISTEN'
tcp6       0      0 :::443                  :::*                    LISTEN     
tcp6       0      0 :::9000                 :::*                    LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     
root@alexus:~# curl -I http://0:80
curl: (52) Empty reply from server
root@alexus:~# curl -I http://0.0.0.0:80
curl: (52) Empty reply from server
root@alexus:~# 
@kasperisager
Copy link
Owner

Might be related to moby/moby#2174?

@a1exus
Copy link
Author

a1exus commented Oct 7, 2015

I'm still unable to access www port on ipv4, even after disabling ipv6 system wide:

root@alexus:~# cat /proc/sys/net/ipv6/conf/all/disable_ipv6
1
root@alexus:~# netstat -an | grep -E '^tcp6.*LISTEN'
tcp6       0      0 :::9300                 :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 :::443                  :::*                    LISTEN     
tcp6       0      0 :::9000                 :::*                    LISTEN     
tcp6       0      0 :::2376                 :::*                    LISTEN     
tcp6       0      0 :::27017                :::*                    LISTEN     
tcp6       0      0 :::3306                 :::*                    LISTEN     
tcp6       0      0 :::6379                 :::*                    LISTEN     
tcp6       0      0 :::11211                :::*                    LISTEN     
tcp6       0      0 :::111                  :::*                    LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     
tcp6       0      0 :::9200                 :::*                    LISTEN     
root@alexus:~# 

please advise

@kasperisager
Copy link
Owner

Closing this as it seems related directly to Docker.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants