How to open/run YML compose file?

dstr picture dstr · Jun 5, 2017 · Viewed 78.6k times · Source

How can I open/run a YML compose file on my computer? I've installed Docker for Windows and Docker tools but couldn't figure out how.

Answer

humblebee picture humblebee · Jun 5, 2017

If you are asking how to open YAML files, then you can use some common editors like NotePad++ in windows or vim in linux. If your question is about running the compose yaml file, then run this command from the directory where compose file is residing:

docker-compose -f {compose file name} up

You can avoid -f if your filename is docker-compose.yml