Please let me know when Swarmkit-mon is upgraded to use Docker Client 1.13.1.
The following command does not work as the current client, 1.13.0-rc3, does not support host mode networking:
docker service create \
--mode global \
--name consul \
--network edge \
-p mode=host,published=8500,target=8500 \
-p mode=host,published=53,target=8600 \
-p mode=host,published=53,target=8600,protocol=udp \
-e 'CONSUL_BIND_INTERFACE=eth0' \
-e 'CONSUL_CLIENT_INTERFACE=eth1' \
consul:0.7.4 agent -ui -datacenter l300 -domain iot. \
-server -join tasks.consul -bootstrap-expect 2 -recursor 8.8.8.8 8.8.4.4
Will get the following error:
invalid argument "mode=host,published=8500,target=8500" for p: Invalid containerPort: mode=host,published=8500,target=85
00