Add cache_from to v2 reference (#6410)

This commit is contained in:
Joffrey F 2018-04-09 18:56:59 -07:00 committed by Gwendolynne Barr
parent ac59a4d4b6
commit 0e2cc91765
1 changed files with 12 additions and 0 deletions

View File

@ -128,6 +128,18 @@ with the `webapp` and optional `tag` specified in `image`:
This results in an image named `webapp` and tagged `tag`, built from `./dir`.
#### cache_from
> Added in [version 2.2](compose-versioning.md#version-22) file format
A list of images that the engine uses for cache resolution.
build:
context: .
cache_from:
- alpine:latest
- corp/web_app:3.14
#### context
> [Version 2 file format](compose-versioning.md#version-2) and up. In version 1, just use