I create a docker compose file which is correct 100%, but vscode see some error, this is very annoying

May be somebody can explain?

docker compose

1

1 Answer

Reason of VSCode alert is obviously invalid YAML syntax of your file. According to specific syntax and directory name I can conclude it's template of compose file.

But, thanks to flexible YAML specification, you can try to make it valid.

Try to enclose in quotation marks your volumes items (like - "{{ ldap_...}}:/dir/"), seem it will satisfy vscode, docker compose and your template engine.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.