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

Time:10-16

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?

CodePudding user response:

127.0.0.1 would save your day!

  • Related