1

我正在尝试在 VMware 上的 Ubuntu 来宾虚拟机上安装 DCP(Docker 通用控制平面)(在 Windows 10 主机上,具有桥接网络),以便在其上安装和使用 DTR(Docker 受信任的注册表)。

这个命令

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp install -i --host-address 172.17.9.102

返回:

INFO[0000] Verifying your system is compatible with UCP 
INFO[0000] Your engine version 1.12.1, build 23cf638 (4.4.0-31-generic) is compatible 
Please choose your initial UCP admin password: 
Confirm your initial password: 
INFO[0007] All required images are present              
WARN[0007] None of the hostnames we'll be using in the UCP certificates [ubuntu 127.0.0.1 172.17.0.1 172.17.9.102] contain a domain component.  Your generated certs may fail TLS validation unless you only use one of these shortnames or IPs to connect.  You can use the --san flag to add more aliases 

You may enter additional aliases (SANs) now or press enter to proceed with the above list.
Additional aliases: 
INFO[0009] Installing UCP with host address 172.17.9.102 - If this is incorrect, please specify an alternative address with the '--host-address' flag 
INFO[0000] Checking that required ports are available and accessible 
FATA[0032] The following required ports are blocked on your host: 12385, 12383, 12376, 12379, 12384, 12381, 2376, 12382, 12386, 12380, 443.  Check your firewall settings.  

那么你们有解决这个问题的办法吗?是否可以仅为虚拟机打开这些端口?那么,我的意思是具有与此不同的“防火墙”设置?

PS。我认为我不允许更改主机操作系统(Windows 10)上的防火墙设置。

谢谢!

4

1 回答 1

1

看起来您已经安装了 docker 1.12 并且在此基础上更新了 docker 1.12-cs 引擎。解决方案是,您删除 docker engine 二进制文件,再次安装 docker engine 1.12-cs2 并尝试。

于 2016-10-24T10:21:05.383 回答