Coder.comC
Coder.com5mo ago
5 replies
jreslock

Can I specify a custom devcontainer.json path?

My projects all use a shared/common devcontainer configuration which uses docker-compose for supporting multiple containers. The json is in a subdirectory. Is it possible to tell coder where to look instead of relying on the default locations of repo root or .devcontainer/devcontainer.json?

I know I could add a basic one at repo root that “extends” the one in the subdirectory but that seems like something I should be able to configure rather than something I should have to adjust my already-functional native devcontainer setup to achieve.
Was this page helpful?