root@book-VirtualBox:~# docker swarm init
Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses on different interfaces (10.0.2.15 on enp0s3 and 10.112.32.55 on enp0s8) - specify one with --advertise-addr
root@book-VirtualBox:~# docker swarm init --advertise-addr 10.112.32.55
Swarm initialized: current node (jkerardt55ygpfjgfqf7sxhim) is now a manager.
To add a worker to this swarm, run the following command:
docker swarm join --token SWMTKN-1-3et7feb7yrym8lxi7o0zq926fr7g5dy3042tlykzscdgy9giey-afm5xrgcbcyebf03ar50pgufy 10.112.32.55:2377
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
需要指定IP地址:–advertise-addr 10.112.32.55