docker
A docker
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 destination for the docker image, such asapi.tar
ordocker-images/worker.tar
.image
- The docker image URLsource
- 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
mode
- The unix file permissions to be set on the image tar archive, e.g600
.when
- This asset will be included when ‘when’ is omitted or true
Examples
assets:
v1:
- docker:
image: 'quay.io/cooltool-enterprise/api:1.0.1'
source: quayio-private
dest: images/api.tar
assets:
v1:
- docker:
image: 'registry.replicated.com/cooltool/worker:1.1.0'
dest: images/worker.tar
source: replicated
assets:
v1:
- docker:
image: 'postgres:9.6'
dest: images/postgres.tar
source: public
mode: 600