The remote.portsAttributes
setting now allows a new option for onAutoForward
: openBrowserOnce
. This option will open the browser only the first time the port is detected during a "session", where a "session" is reset by reloading or closing the folder. This option is useful if you have a watch task that frequently causes the process that your port is listening on to be killed and restarted.
{
"remote.portsAttributes": {
"4000": {
"onAutoForward": "openBrowserOnce"
}
}
}
When using a Dockerfile, you can now specify one or more images to use as caches when building the image. Cached image identifiers, specified with cacheFrom
in devcontainer.json
, are passed to the docker build
command with --cache-from
.
{
...
"build": {
"dockerfile": "Dockerfile",
"cacheFrom": "<image identifier>"
}
}
Stuart Leeks (@stuartleeks) contributed this option as a PR.
Dev Containers now checks if the "hostRequirements"
in the devcontainer.json
are met by the Docker daemon's host machine:
{
...
"hostRequirements": {
"memory": "10gb",
"storage": "20gb",
"cpus": 3
}
}
We now update UID/GID of the container user also when using Docker Compose. The automatic update was previously only available when using a single container. This feature can be turned off with "updateRemoteUserUID": false
in devcontainer.json
.
We now support overriding the command and entrypoint with Docker Compose. The default with Docker Compose is to not override. This feature can be turned on with "overrideCommand": true
in devcontainer.json
.