mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-22 20:20:39 +00:00
updated caching docs [CI SKIP]
This commit is contained in:
parent
f510688b48
commit
a12f0f403d
6
DOCS.md
6
DOCS.md
@ -57,7 +57,9 @@ publish:
|
|||||||
|
|
||||||
Note that in the above example we quote the version numbers. If the yaml parser interprets the value as a number it will cause a parsing error.
|
Note that in the above example we quote the version numbers. If the yaml parser interprets the value as a number it will cause a parsing error.
|
||||||
|
|
||||||
You may want to cache Docker image layers between builds to speed up the build process:
|
## Layer Caching
|
||||||
|
|
||||||
|
The Drone build environment is, by default, ephemeral meaning that you layers are not saved between builds. The below example combines Drone's caching feature and Docker's `save` and `load` capabilities to cache and restore image layers between builds:
|
||||||
|
|
||||||
```
|
```
|
||||||
publish:
|
publish:
|
||||||
@ -79,6 +81,8 @@ cache:
|
|||||||
- docker/image.tar
|
- docker/image.tar
|
||||||
```
|
```
|
||||||
|
|
||||||
|
In some cases caching will greatly improve build performance, however, the tradeoff is that caching Docker image layers may consume very large amounts of disk space.
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
For detailed output you can set the `DOCKER_LAUNCH_DEBUG` environment variable in your plugin configuration. This starts Docker with verbose logging enabled.
|
For detailed output you can set the `DOCKER_LAUNCH_DEBUG` environment variable in your plugin configuration. This starts Docker with verbose logging enabled.
|
||||||
|
Loading…
Reference in New Issue
Block a user