Answer the question
In order to leave comments, you need to log in
Why does "Socket error [111]: Connection refused" occur in docker?
There is the main OS - ubuntu, there is an additional OS where the opt.loc site is deployed (I write in php) - docker .. I check
in the main OS (I need to understand which ports are open - I see they are closed: 80,443.):
:~$ nmap -p80,443 opt.loc
Starting Nmap 7.60 ( https://nmap.org ) at 2019-08-21 17:05 MSK
Nmap scan report for opt.loc (127.0.0.1)
Host is up (0.000055s latency).
rDNS record for 127.0.0.1: localhost
PORT STATE SERVICE
80/tcp closed http
443/tcp closed https
Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
127.0.0.1 localhost
127.0.0.1 opt.loc
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 opt.loc
curl http://opt.loc:8080
ports:
- 80:80
- 443:443
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question