16 September 2016

Run command 'docker-compose up -d' see ERROR: In file './docker-compose.yml' service 'version'


Run Command:
# docker-compose up -d

ERROR Message :
ERROR: In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.
Check list:
# docker-compose --version
docker-compose version 1.5.2, build unknown
Fixed Issue:
# curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose
and Run docker-compose again.

URL Refer:

https://github.com/docker/compose/issues/2863

https://github.com/docker/compose/releases