docker - 有没有人知道如何在 Windows 上使用 docker 图像启动 consul web ui?

标签 docker consul

我已经下载了 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/

相关文章:

docker - 在本地主机的Docker中找不到生成的文件

Docker-compose:用生产中预构建的镜像替换基于 "build"的服务?

docker - 将领事代理连接到领事

service - Consul:在不知道现有成员IP的情况下加入

ssl - Consul Helm TLS 错误 : unknown PEM block type for signing key: CERTIFICATE

python - 在 docker 容器内运行的 opencv3.0 出现内存不足错误

docker - 如何在编织中与Docker容器通信?

docker - oh-my-zsh 安装返回非零代码

ssl - 使用 SSL 的安全领事不起作用

kubernetes - Spring Cloud Consul-服务未在K8s上注册可联系地址