Docker Community Forums

Share and learn in the Docker community.

Docker run commands converted to docker-compose.yml

Hi All,

New to docker, so I’m having a bit of trouble:

I was told to include this command: docker run -d -p 8500:8500 -h consul --name consul progrium/consul -server -bootstrap

However, I’m using docker-compose, so I’m not sure how to make this work with that file format. What I have so far:

- "8500"
- "8500:8500"
image: progrium/consul

HOW do I pass the -server and -bootsrtap commands? It seems I do need them, as when I run docker-compose up I get this error: “Error response from daemon: error getting pools config from store: could not get pools config from store: Unexpected response code: 500”

Ubuntu server 16.04
Docker 1.13.0
docker-compose 1.10.0
Running inside Azure if that makes a difference.

Please let me know if you need further information.


these are commands: