README.md: update description of inline cache use for output

Fix #1294

Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
v0.7
l00397676 2019-12-27 21:55:17 +08:00
parent a276ba731c
commit 8244958486
1 changed files with 2 additions and 2 deletions

View File

@ -205,8 +205,8 @@ By default, the build result and intermediate cache will only remain internally
buildctl build ... --output type=image,name=docker.io/username/image,push=true
```
To export and import the cache along with the image, you need to specify `--export-cache type=inline` and `--import-cache type=registry,ref=...`.
See [Export cache](#export-cache).
To export the cache embed with the image and pushing them to registry together, type `registry` is required to import the cache, you should specify `--export-cache type=inline` and `--import-cache type=registry,ref=...`. To export the cache to a local directy, you should specify `--export-cache type=local`.
Details in [Export cache](#export-cache).
```bash
buildctl build ...\