运行 官方领事 docker 图片
Running the official consul docker image
我正尝试通过执行以下操作运行 官方 docker 图片
docker pull consul
docker run -d --name=dev-consul -p 8500:8500 consul
当我尝试使用 curl 访问 consul 服务器时,我得到一个空回复
vagrant@docker:~$ curl localhost:8500/v1/catalog/nodes --verbose
* Hostname was NOT found in DNS cache
* Trying ::1...
* Connected to localhost (::1) port 8500 (#0)
> GET /v1/catalog/nodes HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8500
> Accept: */*
>
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server
我错过了什么?
我开始执政:
docker run -p 8500:8500 -p 8600:8600/udp --name=consul consul:v0.6.4 agent -server -bootstrap -ui -client=0.0.0.0
我正尝试通过执行以下操作运行 官方 docker 图片
docker pull consul
docker run -d --name=dev-consul -p 8500:8500 consul
当我尝试使用 curl 访问 consul 服务器时,我得到一个空回复
vagrant@docker:~$ curl localhost:8500/v1/catalog/nodes --verbose
* Hostname was NOT found in DNS cache
* Trying ::1...
* Connected to localhost (::1) port 8500 (#0)
> GET /v1/catalog/nodes HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8500
> Accept: */*
>
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server
我错过了什么?
我开始执政:
docker run -p 8500:8500 -p 8600:8600/udp --name=consul consul:v0.6.4 agent -server -bootstrap -ui -client=0.0.0.0