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.

Assets | Config | Lifecycle

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 as api.tar or docker-images/worker.tar.

  • image - The docker image URL

  • source - The source for the image. Should be either public, 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.g 600.

  • 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