Command executed:
docker swarm init
Observed error:
Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses on different interfaces (10.255.255.254 on lo and 172.24.124.248 on eth0) - specify one with --advertise-addr

Command executed:
docker swarm init --advertise-addr 172.24.124.248

Command executed:
docker node ls

Command executed:
docker network create -d overlay --attachable my_overlay

Command executed:
docker run -d --network my_overlay --name app1 alpine sleep 3600
docker run -d --network my_overlay --name app2 alpine sleep 3600

Command executed:
docker exec app1 ping app2

Command executed:
ip route show default

Command executed:
docker network create -d macvlan \
--subnet=172.24.0.0/16 \
--gateway=172.24.112.1 \
-o parent=eth0 \
my_macvlan

Command executed:
docker run -d \
--name web-macvlan \
--network my_macvlan \
--ip 172.24.112.50 \
nginx

Docker Swarm was successfully initialized using an explicit advertise address. Overlay and macvlan networks were created, containers were deployed, and connectivity/routing checks were validated.
docker swarm init can fail on hosts with multiple interface IPs--advertise-addr resolves swarm initialization ambiguity