API Developer Portal: Error when running the portal.sh script - "Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses on different interfaces"
book
Article ID: 121479
calendar_today
Updated On:
Products
CA API Developer Portal
Issue/Introduction
When running the portal.sh script the following error displays on screen:
Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses on different interfaces (x.x.x.x on eth0 and x.x.x.x on eth1) - specify one with --advertise-addr
Environment
This impacts all Portal versions up to 4.4 as of the time of this edit.
Resolution
To resolve this issue, follow the steps below:
Edit the portal.sh script, line 648. Change the text that reads docker swam init > /dev/null to read instead as the following: docker swarm init --advertise-addr <ipaddress> > /dev/null
Change <ipaddress> to the actual IP address that should be seeing the publish Portal services.