Add Container news
This commit is contained in:
Родитель
7556ab383f
Коммит
235165f42b
|
@ -15,7 +15,7 @@ vscode-insiders://vscode-remote/<remoteName>+<resolverArguments>/<path>
|
|||
|
||||
### Recommendations for remote extensions
|
||||
|
||||
When opening a link to a remote workspace, but the remote extension is not yet installed, a recommendation makes it easy to do so:
|
||||
When opening a link to a remote workspace, but the corresponding remote extension is not yet installed, a recommendation makes it easy to do so:
|
||||
|
||||
![Remote extension recommendation](images/1_43/remote-recommendation.png)
|
||||
|
||||
|
@ -36,3 +36,27 @@ We now support connecting to macOS hosts. You don't need to do anything - when y
|
|||
## WSL
|
||||
|
||||
## Containers
|
||||
|
||||
### New configuration properties
|
||||
|
||||
The `devContainer.json` file supports additional properties:
|
||||
|
||||
- `initializeCommand` can be used to run a command before building or rebuilding a container. The property can be set to a string that is run in a shell or to an array of strings which are run without a shell.
|
||||
|
||||
- `build` allows to define the docker [build target](https://docs.docker.com/engine/reference/commandline/build/#specifying-target-build-stage---target) and [build arguments](https://docs.docker.com/engine/reference/builder/#arg). It is now also possible to specify the `dockerFile` and `context` properties inside the `build` section (the old location is still supported). Here is an example:
|
||||
```json
|
||||
{
|
||||
"build": {
|
||||
"dockerfile": "...",
|
||||
"context": "...",
|
||||
"target": "...",
|
||||
"args": {
|
||||
"FOO": "BAR"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Dotfiles repository support - generalized setting value
|
||||
|
||||
In the last iteration we have added support for [dotfiles](https://github.com/microsoft/vscode-docs/blob/vnext/remote-release-notes/v1_42.md#dotfiles-repository-support) and corresponding settings `remote.containers.dotfiles`. Since dotfiles are a generally useful mechanism that are not only used for VS Code Remote Container but also by [VS Online](https://docs.microsoft.com/en-us/visualstudio/online/reference/personalizing#visual-studio-online-personalization-reference) we now also support a more general setting name `dotfiles`, that will eventually allow to define the `dotfiles` preferences with a single setting.
|
||||
|
|
Загрузка…
Ссылка в новой задаче