microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.7k stars 1.41k forks source link

JSON configuration for mounts doesn't work in codespaces #1699

Closed dsyer closed 1 year ago

dsyer commented 1 year ago

This works locally (and is the syntax recommended in the devcontainers reference docs):

"mounts": [{ "source": "test", "target": "/test", "type": "volume" }],

but causes the container creation to fail with no useful error message in codespaces. In codespaces you need:

"mounts": ["source=test,target=/test,type=volume"],
Chuxel commented 1 year ago

This sounds like a Codespaces bug rather than an image or dev container spec issue.

@joshspicer @samruddhikhandale @jkeech @edgonmsft ?

edgonmsft commented 1 year ago

Yep it does sound like a Codespaces issue.

joshspicer commented 1 year ago

deployed