ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Error building Service Virtualization images in Docker


Article ID: 4785


Updated On:


CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)


(11)    Issue when building Service Virtualization images in Dockers 


(22)    Error below is seen
Execution failed for task ':dockerimages/devtest-jre:dockerImage'. 
> Docker execution failed 
Command line [docker tag -f devtest/devtest-jre: devtest/devtest-jre:latest] returned: 
unknown shorthand flag: 'f' in -f 
See 'docker tag --help'. 


-f flag on docker tag is Deprecated In Release: v1.10.0 
Removed In Release: v1.12.0 

 “To make tagging consistent across the various docker commands, the -f flag on the docker tag command is deprecated. It is no longer necessary to specify -f to move a tag from one image to another. Nor will docker generate an error if the -f flag is missing and the specified tag is already in use.”



DevTest 8.X and 9.XDockers v1.10.0 and v1.12.0


Modify the file buildSrc/src/main/groovy/com/ca/devtest/docker/NativeDockerClientEx.groovy

line 22

def cmdLine = "${binary} tag -f ${tag} ${newTag}"


to remove the -f