Skip to content

Commit 556c759

Browse files
committed
Fixed ensureImage filter
1 parent c9fbe2a commit 556c759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class PkgPyFuncs {
119119
}
120120

121121
ensureImage(){
122-
const out = this.runProcess('docker', ['images', '--format','{{.Repository}}:{{.Tag}}']).replace(/^\s+|\s+$/g, '')
122+
const out = this.runProcess('docker', ['images', '--format','{{.Repository}}:{{.Tag}}','--filter',`reference=${this.dockerImage}`]).replace(/^\s+|\s+$/g, '')
123123
if ( out != this.dockerImage ){
124124
this.log(`Docker Image ${this.dockerImage} is not already installed on your system. Downloading. This might take a while. Subsequent deploys will be faster...`)
125125
this.runProcess('docker', ['pull', this.dockerImage])

0 commit comments

Comments
 (0)