This commit is contained in:
Christof Marti 2021-07-05 09:44:42 +02:00
Родитель de1cd8ae75
Коммит 51551d46f7
2 изменённых файлов: 49 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0584f4f635c24d64bd385827ba0c14fb2456795b6c9bb7f05c2cd28e656c236d
size 51472

Просмотреть файл

@ -0,0 +1,46 @@
# June 2021 (version 1.58)
## Containers (version 0.187.x)
### devcontainer.json support for `--cacheFrom`
When using a Dockerfile you can now specify one or more images to use as caches when building the image. These are passed to the `docker build` command with `--cacheFrom`.
```json
{
...
"build": {
"dockerfile": "Dockerfile",
"cacheFrom": "<image identifier>"
}
}
```
[Stuart Leeks (@stuartleeks)](https://github.com/stuartleeks) contributed this option as a PR.
### Host Requirements
Remote-Containers now checks if the `"hostRequirements"` in the devcontainer.json are met by the Docker daemon's host machine:
```json
{
...
"hostRequirements": {
"memory": "10gb",
"storage": "20gb",
"cpus": 3
}
}
```
![Dialog when host requirements are not met.](images/1_58/host-requirements.png)
### Update UID/GID with Docker Compose on Linux
We now update UID/GID of the container user also when using Docker Compose. This was previously only available when using a single container. It can be turned off with `"updateRemoteUserUID": false` in the devcontainer.json.
### `"overrideCommand"` support with Docker Compose
We now support overriding the command and entrypoint with Docker Compose. The default with Docker Compose is to not override. This can be turned on with `"overrideCommand": true` in the devcontainer.json.