Tracks and builds Docker images.
-
repository
: Required. The name of the repository, e.g.concourse/docker-image-resource
. -
tag
: Optional. The tag to track. Defaults tolatest
. -
username
: Optional. The username to authenticate with when pushing. -
password
: Optional. The password to use when authenticating. -
email
: Optional. The email to use when authenticating. -
server_args
: Optional. Additional arguments to be passed during Docker daemon start.
The current image ID is fetched from the registry for the given tag of the repository. If it's different from the current version, it is returned.
Pulls down the repository from the registry. Note that there's no way to
fetch an image by ID from the Docker registry, which makes the version
requested irrelevant. Instead, in
returns the ID of the image that it
ended up fetching as the version.
The following files will be placed in the destination:
/image
: Thedocker save
d image./repository
: The name of the repository that was fetched./tag
: The tag of the repository that was fetched./image-id
: The fetched image ID./rootfs.tar
: Ifrootfs
istrue
, the contents of the image will be provided here.
rootfs
: Optional. Place a.tar
file of the image in the destination.
Push a Docker image to the source's repository and tag. The resulting version is the image's ID.
-
push
: Optional. Defaulttrue
. Push the image to the Docker index. -
rootfs
: Optional. Defaultfalse
. Place a.tar
file of the image in the destination. -
build
: Optional. The path of a directory containing aDockerfile
to build. -
load_file
: Optional. A path to a file todocker load
and then push. -
pull_repository
: Optional. A path to a repository to pull down, and then push to this resource. -
tag
: Optional. The value should be a path to a file containing the name of the tag. -
tag_prefix
: Optional. If specified, the tag read from the file will be prepended with this string. This is useful for addingv
in front of version numbers.