Consul build in a container. This image is meant to be run with the --restart=always flag and be a default image on a server.
This container needs to be run with the -v flag that points to a config directory for consul to work with.
It should also be run with --net host to allow consul to run as if it was on the host directly.
docker run -d --name consul --net host -v /etc/consul.d/:/etc/consul.d morfien101/consul