mirror of https://github.com/docker/docs.git
Add cache_from to v2 reference (#6410)
This commit is contained in:
parent
ac59a4d4b6
commit
0e2cc91765
|
@ -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`.
|
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
|
#### context
|
||||||
|
|
||||||
> [Version 2 file format](compose-versioning.md#version-2) and up. In version 1, just use
|
> [Version 2 file format](compose-versioning.md#version-2) and up. In version 1, just use
|
||||||
|
|
Loading…
Reference in New Issue