Docker - 从主机访问 mapr UI
Docker - Access mapr UI from host
我已经在一台 CentOS 机器上安装了 docker。现在我正在尝试 运行 一个 MapR 沙箱。开始后我得到这个:
Starting MapR Services.................
To manage this node go to: https://172.17.0.13:8443
但是我无法从与 CentOS 机器处于同一网络的 windows 机器上访问这个 URL。
这是一个内部 docker 网络,在盒子外无法访问。要访问此容器,您需要:
如果您只指定 -p 端口将是随机的 - 您可以使用 inspect 命令找到它,或者您可以使用永久端口 -p hostIp:externalPort:8443 其中 hostIp 是您的 docker 主机的地址。
之后您可以从网络访问容器 https://hostIp:externalPort
我已经在一台 CentOS 机器上安装了 docker。现在我正在尝试 运行 一个 MapR 沙箱。开始后我得到这个:
Starting MapR Services.................
To manage this node go to: https://172.17.0.13:8443
但是我无法从与 CentOS 机器处于同一网络的 windows 机器上访问这个 URL。
这是一个内部 docker 网络,在盒子外无法访问。要访问此容器,您需要:
如果您只指定 -p 端口将是随机的 - 您可以使用 inspect 命令找到它,或者您可以使用永久端口 -p hostIp:externalPort:8443 其中 hostIp 是您的 docker 主机的地址。
之后您可以从网络访问容器 https://hostIp:externalPort