我已经下载了 Docker Consul 镜像并且它正在运行,但是我无法访问它的 Web UI。有没有人知道如何开始。我在我的本地机器上以开发者模式运行它。
我在运行:
docker run -d --name=dev-consul -e CONSUL_BIND_INTERFACE=eth0 consul
最佳答案
参见 documentation :
The Web UI can be enabled by adding the -ui-dir flag:
$ docker run -p 8400:8400 -p 8500:8500 -p 8600:53/udp -h node1 progrium/consul -server -bootstrap -ui-dir /ui
We publish 8400 (RPC), 8500 (HTTP), and 8600 (DNS) so you can try all three interfaces. We also give it a hostname of node1. Setting the container hostname is the intended way to name the Consul Agent node.
您可以尝试通过设置 -ui-dir
标志来激活 ui。
关于docker - 有没有人知道如何在 Windows 上使用 docker 图像启动 consul web ui?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51747614/