Developing with consul on Macbook

Posted by clsung on Monday, August 15, 2016

For development use, we need to have consul running on localhost. When using a Macbook (Air), we need to specify the “-bind=0.0.0.0” and “-client=0.0.0.0” in order to have programs (tests) access to the consul agent in the container: 

docker run -p 53:8600 -p 8500:8500 -p 8300:8300 -d --name=dev-consul consul agent -dev -bind=0.0.0.0 -client=0.0.0.0