Skip to main content

Docker Success Center

The Docker enterprise customer portal.

Docker, Inc.

Install of UCP on RHEL or CentOS results in error regarding following ports are already in use on your host

Introduction Sentence or Paragraph: Installing UCP on RHEL or CentOS results in an error

UCP: FATA[0009] The following required ports are already in use on your host - 12385, 443, 2376, 12376, 4789, 12379, 12381, 12380, 12386, 12382, 12383, 12384.  You may specify an alternative port number to 2376 with the --swarm-port argument.

Steps

Introduction Sentence or Paragraph (required): To fix the issue regarding ports in use and attempt the installation again do the following

  1. Check if firewalld is enabled (most likely scenario)
  2. Verify no other applications are running on any of the required ports
  3. Add ports to open in the firewall
  4. # Add ports to open in the firewall
    for i in 12376 4789 12386 2376 443 12381 12380 12382 12383 12384 12385 12379 ; do
      echo adding $i to the firewall
      firewall-cmd --add-port=$i/tcp --permanent
    done
    # Restart the firewall:
    firewall-cmd –-reload
    # Restart docker service:
    systemctl restart docker
  • Was this article helpful?