We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8857bf4 commit 1963402Copy full SHA for 1963402
lib/create-container.js
@@ -9,7 +9,14 @@ const inspect = require('util').inspect;
9
const stream = require('stream');
10
11
function isImageLocally(docker, image, done) {
12
- const withoutTag = image.split(':')[0];
+ const imageSplitted = image.split(':');
13
+ const withoutTag = imageSplitted.reduce((accum, current, index) => {
14
+ if (index < imageSplitted.length - 1) {
15
+ return `${accum}:${current}`;
16
+ } else {
17
+ return accum;
18
+ }
19
+ });
20
const fullname = image === withoutTag ? `${image}:latest` : image;
21
22
docker.listImages({filter: withoutTag}, function (err, images) {
0 commit comments