Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error when try to add docker swarm manager into multipass VM

I have tried to launch two multipass VM. After installing docker in the multipass, I am trying to initialize docker swarm in one of the multipass vm. The command is:

multipass exec node1 -- /bin/bash -c 'docker swarm init --advertise-addr 10.173.198.201:2377 --listen-addr 10.173.198.201:2377'

But then the error comes up. It says:

Error response from daemon: advertise address must be a non-zero IP address or network interface (with optional port number)

Now how can I solve the issue? Can I launch multipass without 0 in IP?

like image 577
Shamir Imtiaz Avatar asked Nov 21 '25 19:11

Shamir Imtiaz


1 Answers

127.0.0.1 would save your day!

like image 127
msrumon Avatar answered Nov 23 '25 09:11

msrumon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!