Public Repository

Last pushed: 2 years ago
Short Description
Consul Server
Full Description

Run Container

docker run -itd --name consul-srv -p 8500:8500 tksarah/consul-srv /sbin/my_init

Consul Server

consul agent -server -bootstrap-expect 1 -data-dir /opt/consul -node=consul-srv -ui-dir=/usr/local/consul/dist -client=0.0.0.0 -dc=DC1

Consul Client

consul agent -data-dir /tmp/consul -node=consul-cli -bind=<listen address> -join=<consul server address> -dc=DC1

Example

consul agent -data-dir /tmp/consul -node=consul-cli -bind=172.17.0.4 -join=172.17.0.8
Docker Pull Command
Owner
tksarah

Comments (0)