microsoft / microsoft/vscode-remote-release

`mounts` property is not very intuitive

Open
#2,233 0 comments 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jan 28, 2020.

containers feature-request plan-review
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Refs: https://github.com/microsoft/vscode-remote-release/issues/2207

I'm a noob to dev containers. To configure I mount, I expected to be able to have an object in the array like

	"mounts": [
		{
			"source": "/home/connor/Github",
			"target": "/sources"
		}
	],

...so I tried putting in an object and write a property, but didn't get intellisense. When I went to the docs I discovered it needs to be the CLI string form

"mounts": ["source=${localEnv:HOME}${localEnv:USERPROFILE},target=/host-home-folder,type=bind,consistency=cached"]

It seems like we could allow users to specify that as a string or object, and if given as an object then stringify it for them.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.