Docker Image: Support to Build, Remove, Pull, Push and Tag Image Functions

Docker Image: Support to Build, Remove, Pull, Push and Tag Image Functions

Universal Task to Manage Docker Images; Build, Remove, Pull, Push, and Tag Functions

This Universal Task can automate the following Docker Image functions:

  • Build

  • Remove

  • Pull

  • Push

  • Tag

Example Output





Universal Task Details Fields

Docker Function = Build



Field Label

Description

Example

Image Name

Docker Image Name (including tag)

myimage:latest

Dockerfile

Select the required dockerfile from the UC script library



Image Build Arguments

Specify options to pass to the docker image build



Remove

Always remove intermediate containers, even after unsuccessful builds



Pull

Always attempt to pull a newer version of the base image



Logging Level

Controls messages issued from the Universal Task:

  • None

  • Info

  • Debug

  • Warning

  • Critical

None

Runtime Directory

Will be used as the build context 

/docker/builds/myimage



Docker Function = Remove



Field Label

Description

Example

Image Name

Docker Image Name (including tag)

myimage:latest

Force

Force the removal of a running container or image



Logging Level

Controls messages issued from the Universal Task:

  • None

  • Info

  • Debug

  • Warning

  • Critical

None



Docker Function = Pull





Field Label

Description

Example

Image Name

Docker Image Name (including tag)

stonebranch/universal-agent:latest

Logging Level

Controls messages issues from the Universal Task:

  • None

  • Info

  • Debug

  • Warning

  • Critical

None



Docker Function = Push





Field Label

Description

Example

Image Name

Docker Image Name (including tag)

stonebranch/universal-agent:latest

Repository Credential

Docker Repository Credential



Logging Level

Controls messages issues from the Universal Task:

  • None

  • Info

  • Debug

  • Warning

  • Critical

None



Docker Function =  Tag



Field Label

Description

Example

Image Name

Docker Image Name (including tag)

universal-agent:6.8.0.0

Target Image Tag

Target Image that refers to source image

universal-agent:latest

Logging Level

Controls messages issues from the Universal Task:

  • None

  • Info

  • Debug

  • Warning

  • Critical

None