updated caching docs [CI SKIP]

This commit is contained in:
Brad Rydzewski 2015-11-19 13:29:16 -08:00
parent f510688b48
commit a12f0f403d

@ -56,8 +56,10 @@ 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.
## Layer Caching
You may want to cache Docker image layers between builds to speed up the build process:
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:
@ -79,6 +81,8 @@ cache:
- 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
For detailed output you can set the `DOCKER_LAUNCH_DEBUG` environment variable in your plugin configuration. This starts Docker with verbose logging enabled.