Adds support for saving/restoring image layers from archive

This commit is contained in:
Jan Broer
2015-11-09 05:44:56 +01:00
parent dd43c76c88
commit fd95103a82
2 changed files with 81 additions and 0 deletions

24
DOCS.md
View File

@@ -9,6 +9,9 @@ The following parameters are used to configure this plugin:
* `tag` - repository tag for the image
* `insecure` - enable insecure communication to this registry
* `storage_driver` - use `aufs`, `devicemapper`, `btrfs` or `overlay` driver
* `archive` - save and restore image layers to/from a tarred archive
* `file` - absolute or relative path to archive file
* `tag` - limit archiving to these tag(s) (optional)
The following is a sample Docker configuration in your .drone.yml file:
@@ -53,6 +56,27 @@ 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.
You may want to cache Docker image layers between builds to speed up the build process:
```
publish:
docker:
username: kevinbacon
password: $$DOCKER_PASSWORD
email: kevin.bacon@mail.com
repo: foo/bar
tag:
- latest
- "1.0.1"
archive:
file: docker/image.tar
tag: latest
cache:
mount:
- docker/image.tar
```
## Troubleshooting
For detailed output you can set the `DOCKER_LAUNCH_DEBUG` environment variable in your plugin configuration. This starts Docker with verbose logging enabled.