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"

Document ID : KB000121479
Last Modified Date : 22/11/2018
Show Technical Document Details
Question:
When running the porta.sh script the following error pops up.
“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”
Answer:
Edit the portal.sh script 
Line 648
docker swarm init > /dev/null

TO 

docker swarm init --advertise-addr <ipaddress>  > /dev/null

*where <ipaddress> is the ip address where you want to publish portal services.