Docker Consul #docker
-- Loading A Docker Image From Export
docker load < <file_name>
--
docker run --name sxi-consul -d --net=host -e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true,"disable_update_check": true, "client_addr" :"0.0.0.0"}' consul agent -server -bind=<external ip> -ui te-retry-join=<root agent ip> -bootstrap-expect=<number of server agents>
This runs a Consul server agent sharing the host's network. All of the network considerations and
docker run --name sxi-consul -d --net=host -e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true,"disable_update_check": true, "client_addr" :"0.0.0.0"}' consul agent -server -bind=<external ip> -ui -retry-join=<root agent ip> -bootstrap
docker run --name sxi-consul -d --net=host -e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true,"disable_update_check": true, "client_addr" :"0.0.0.0"}' consul agent -server -bind=10.6.82.142 -ui -bootstrap
{
"authorization-plugins": [],
"data-root": "",
"dns": [],
"dns-opts": [],
"dns-search": [],
"exec-opts": [],
"exec-root": "",
"experimental": false,
"storage-driver": "",
"storage-opts": [],
"labels": [],
"live-restore": true,
"log-driver": "",
"log-opts": {},
"mtu": 0,
"pidfile": "",
"cluster-store": "",
"cluster-store-opts": {},
"cluster-advertise": "",
"max-concurrent-downloads": 3,
"max-concurrent-uploads": 5,
"default-shm-size": "64M",
"shutdown-timeout": 15,
"debug": true,
"hosts": [],
"log-level": "",
"tls": true,
"tlsverify": true,
"tlscacert": "",
"tlscert": "",
"tlskey": "",
"swarm-default-advertise-addr": "",
"api-cors-header": "",
"selinux-enabled": false,
"userns-remap": "",
"group": "",
"cgroup-parent": "",
"default-ulimits": {},
"init": false,
"init-path": "/usr/libexec/docker-init",
"ipv6": false,
"iptables": false,
"ip-forward": false,
"ip-masq": false,
"userland-proxy": false,
"userland-proxy-path": "/usr/libexec/docker-proxy",
"ip": "0.0.0.0",
"bridge": "",
"bip": "",
"fixed-cidr": "",
"fixed-cidr-v6": "",
"default-gateway": "",
"default-gateway-v6": "",
"icc": false,
"raw-logs": false,
"allow-nondistributable-artifacts": [],
"registry-mirrors": [],
"seccomp-profile": "",
"insecure-registries": [],
"disable-legacy-registry": false,
"no-new-privileges": false,
"default-runtime": "runc",
"oom-score-adjust": -500,
"runtimes": {
"runc": {
"path": "runc"
},
"custom": {
"path": "/usr/local/bin/my-runc-replacement",
"runtimeArgs": [
"--debug"
]
}
}
}