$ 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.52.208.221 on eno1 and 192.168.122.1 on virbr0) - specify one with --advertise-addr
$ docker swarm init --advertise-addr 10.52.208.221
Error response from daemon: --live-restore daemon configuration is incompatible with swarm mode
$
My environment:
$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
$ uname -a
Linux X 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -q docker
docker-1.12.5-14.el7.centos.x86_64
$
The live restore option is not compatible with Docker Engine swarm mode. When
the Docker Engine runs in swarm mode, the orchestration feature manages tasks
and keeps containers running according to a service specification.
If you have this
cat /etc/docker/daemon.json
{
“live-restore”: true
}
switching live-restore from true to false did the job for me:
# cat /etc/docker/daemon.json
{
"live-restore": false
}
# docker swarm init
Swarm initialized: current node (cdw7tv7omkja97mf1bql2mifp) is now a manager.
To add a worker to this swarm, run the following command:
docker swarm join \
--token SWMTKN-1-0pxn4kapleu0bufil1mttsz44r5f6nrtrbtaj3yjb8pp12ij3w-3x9g9439klahytgs17g6esx60 \
10.52.17.101:2377
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
#