Docker Community Forums

Share and learn in the Docker community.

Unable to install UCP after installing Docker Trusted Registry


(Reachkraj) #1

unable to install UCP as port 443 is already in use. if I try installing on same local machine

DEBU[0000] Checking for available port 443
DEBU[0000] Failed to launch port test container: 500 Internal Server Error: failed to create endpoint clever_fermi on network bridge: Bind for 0.0.0.0:443 failed: port is already allocated

DEBU[0000] Checking for available port 2376
DEBU[0000] Checking for available port 12376
DEBU[0001] Checking for available port 12379
DEBU[0001] Checking for available port 12380
DEBU[0002] Checking for available port 12381
DEBU[0002] Checking for available port 12382
FATA[0003] The following required ports are already in use on your host - [443].


(Vivek Saraswat) #2

Hi reachkraj,

If port 443 is in use you can use "–controller-port " when running the UCP install command. This should solve the problem.


(Reachkraj) #3

Hi Vivek ,

Thanks , it worked for me .

Best Regards,
Rajesh


(Reachkraj) #4

Hi Vivek, Why are we forcing ssl port 443 for both,the components ?.if they needed to be run on same machine , port will never be available. Isnt this an issue ?


(Hemantkbajaj1) #5

I am hitting with following error.

[root@myhost ~]# docker run --rm -it --name ucp -v /var/run/docker.sock:/var/run/docker.sock docker/ucp install -i --host-address 16.114.219.49 --controller-port 2399
INFO[0000] Verifying your system is compatible with UCP
INFO[0000] Your engine version 1.12.2-cs2, build d5fda6e (3.10.0-327.el7.x86_64) is compatible
WARN[0000] Your system uses devicemapper. We can not accurately detect available storage space. Please make sure you have at least 3.00 GB available in /var/lib/docker
Please choose your initial UCP admin password:
Confirm your initial password:
INFO[0007] All required images are present
We detected the following hostnames/IP addresses for this system [myhost.mydomain.com 127.0.0.1 172.17.0.1 16.114.219.49]

You may enter additional aliases (SANs) now or press enter to proceed with the above list.
Additional aliases:
INFO[0008] Installing UCP with host address 16.114.219.49 - 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[0005] The following required ports are already in use on your host - 12386, 12383, 12379, 2376, 12385, 12380, 12381, 12376, 12384, 2399, 12382. You may specify an alternative port number to 2376 with the --swarm-port argument.

[root@myhost ~]# docker version
Client:
Version: 1.12.2-cs2
API version: 1.24
Go version: go1.6.3
Git commit: d5fda6e
Built:
OS/Arch: linux/amd64

Server:
Version: 1.12.2-cs2
API version: 1.24
Go version: go1.6.3
Git commit: d5fda6e
Built:
OS/Arch: linux/amd64

Please help me dealing with this error.