dockerlayer
A dockerlayer
asset will pull an image from a public docker registry, registry.replicated.com, or a configured third party registry and produce a tar archive of the container image.
Required Parameters
dest
- The directory in which the layer should be unpackedimage
- The docker image URLlayer
- a SHA256 of the layer to extract. You can inspect the layer SHAs of a docker image by running something likedocker save myimage > myimage.tar && tar xvf myimage.tar -C /tmp
. Ship will unpack the archive at<layer sha>/layer.tar
to thedest
directory.source
- The source for the image. Should be eitherpublic
,replicated
, or the name of a third-party private registry previously configured on console.replicated.com
Optional Parameters
when
- This asset will be included when ‘when’ is omitted or true
Examples
assets:
v1:
- dockerlayer:
image: 'quay.io/cooltool-enterprise/configs:1.0.1'
dest: config/
source: quayio-private
layer: f7126e84abc96fbc8495c33052724fad48115829e86987adbf556474f0ead5c1