Skip to content

Issue in case of image is downloaded by the moment of calling pullImageAsync #2

@maZahaca

Description

@maZahaca

Here is a little issue in the code.
If you run pullImageAsync when an image already exists, it prevents following script execution.

The problem is here:

if (await imageExists(dockerode, imageNameWithTag)) {
      return dockerode.getImage(imageNameWithTag);
}

Should be:

if (await imageExists(dockerode, imageNameWithTag)) {
      resolve(dockerode.getImage(imageNameWithTag));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions