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”
This is the official page, says it works
https://docs.docker.com/compose/faq/
This has some example
https://sloppy.io/en/blog/transform-a-docker-compose-yml-file-to-sloppyio-json/