Similar to SkyDNS, but works under CoreOS cluster
367
NODEIP=$(cat /etc/environment | sed 's|COREOS_PUBLIC_IPV4=||') && echo $NODEIP
docker run -d --name consul -h $HOSTNAME -v /mnt:/data
-p $NODEIP:8300:8300
-p $NODEIP:8301:8301
-p $NODEIP:8301:8301/udp
-p $NODEIP:8302:8302
-p $NODEIP:8302:8302/udp
-p $NODEIP:8400:8400
-p $NODEIP:8500:8500
-p $NODEIP:53:53/udp
-p 172.17.42.1:53:53/udp
apox0/consul -advertise $NODEIP -domain lcl -dc ox
; the last option: -server -bootstrap-expect 3 ; is for the leader of the cluster ; the last option: -server -join 192.168.0.71 ; is for the followers of the cluster running in the server mode (3 to 5 in a cluster) ; the last option: -join 192.168.0.71 ; is for the consul is going to run in client mode (as many as you want)
Content type
Image
Digest
sha256:ca3e608e5…
Size
24.8 MB
Last updated
about 11 years ago
docker pull apox0/consul