docker-compose-development.yaml在我的电脑上运行我的,我无法连接到http://localhost:8080.
此外,我可以运行docker-compose -f docker-compose-development.yaml exec web curl http://localhost:8080并得到结果。所以这似乎不是代码问题。
我已经做了什么:
$ docker inspect ...localhost到127.0.0.1或0.0.0.08080这是我的$ docker version:
Client:
Version: 17.11.0-ce
API version: 1.34
Go version: go1.8.4
Git commit: 1caf76c
Built: Mon Nov 20 18:30:11 2017
OS/Arch: windows/amd64
Server:
Version: 17.11.0-ce
API version: 1.34 (minimum version 1.12)
Go version: go1.8.5
Git commit: 1caf76c
Built: Mon Nov 20 18:39:28 …Run Code Online (Sandbox Code Playgroud)