1
2 Comments

Can JSON be used instead of YAML?

Hello Everyone, I am learning docker and My few interviews are secluded on next tot next week on skype. I am facing some issue about can JSON be used instead of YAML for the compose file in Docker. if yes then How?

I have go through this https://hackr.io/blog/docker-interview-questions here its says JSON can be used instead of YAML for the Docker compose file. To use the JSON file with composing for this syntax “docker-compose -f docker-compose.json up”

on April 3, 2020