Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

devcontainer.json property service/dockerComposeFile is not allowed

After an update of VSCode, there are certain properties in devcontainer.json that seem to be no longer working.

...
"dockerComposeFile": "docker-compose.yml",
"service": "rover",
...

Both of the above properties have a yellow underline with the following prompt: Property x is not allowed x = dockerComposeFile / service

I've tried to look around for alternatives but to be honest not really finding much. Question: Has anyone been able to find a way to implement these settings?

Extra info: The devcontainer documentation doesn't seem to have been updated either as it still references the two properties: https://code.visualstudio.com/docs/remote/devcontainerjson-reference

Current "about" of VSCode:

Version: 1.60.1 (user setup)
Commit: 83bd43bc519d15e50c4272c6cf5c1479df196a4d
Date: 2021-09-10T17:07:10.714Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042
like image 884
Sagar Avatar asked Jul 02 '26 17:07

Sagar


1 Answers

"dockerComposeFile" in mine works as a list, like:

"dockerComposeFile": ["docker-compose.yaml"],
like image 194
Mitchina Avatar answered Jul 05 '26 10:07

Mitchina