The docker environment built with laradock was rejected after entering the Php-fmp container and using the curl command to report the error directly.
root@30b704d009c1:/var/www# curl localhost
curl: (7) Failed to connect to docker.for.mac.localhost port 56137: Connection refused
root@30b704d009c1:/var/www# curl http://baidu.com
curl: (7) Failed to connect to docker.for.mac.localhost port 56137: Connection refused
root@30b704d009c1:/var/www
I tried nginx,workspaec,127.0.0.1, and the external network address, but they were all rejected directly. I don’t know what the problem is.
Outside the container is the address where curl can be connected to the container, but within the capacity curl cannot be connected to the container address.
It’s laradock’s problem. Just update it.