How to open/run YML compose file?
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
To manage .yml
files you have to install and use Docker Compose.
Installation instructions can be found here: https://docs.docker.com/compose/install/
After the installation, go to your docker-compose.yml
directory and then execute docker-compose up
to create and start services in your docker-compose.yml
file.
If you need more information, take a look to Docker Compose docs: https://docs.docker.com/compose