ImageLs

ImageLs

Certified

List Docker images on the host

yaml
type: io.kestra.plugin.docker.ImageLs
yaml
id: docker_image_ls
namespace: company.team

tasks:
  - id: list_images
    type: io.kestra.plugin.docker.ImageLs

yaml
id: docker_image_ls_filter
namespace: company.team

tasks:
  - id: list_alpine
    type: io.kestra.plugin.docker.ImageLs
    imageNameFilter: alpine

yaml
id: docker_detect_image_change
namespace: company.team

tasks:
  - id: before
    type: io.kestra.plugin.docker.ImageLs
    imageNameFilter: alpine:latest

  - id: pull
    type: io.kestra.plugin.docker.Pull
    image: alpine:latest

  - id: after
    type: io.kestra.plugin.docker.ImageLs
    imageNameFilter: alpine:latest

  - id: check
    type: io.kestra.plugin.core.flow.If
    condition: "{{ (outputs.before.images[0].id) != (outputs.after.images[0].id) }}"
    then:
      - id: updated
        type: io.kestra.plugin.core.log.Log
        message: "Image was updated"
    else:
      - id: unchanged
        type: io.kestra.plugin.core.log.Log
        message: "Image is up to date"
Properties
Definitions
authstring
identityTokenstring
passwordstring
registrystring
registryTokenstring
usernamestring
Defaultfalse
Default0
Definitions
createdinteger
idstring
labelsobject
SubTypestring
repoDigestsarray
SubTypestring
repoTagsarray
SubTypestring
sizeinteger