docker-toolbelt
    Preparing search index...

    Function createEmptyImage

    • Given an image configuration it constructs a valid tar archive in the same way a docker save would have done that contains an empty filesystem image with the given configuration.

      We have to go through the docker load mechanism in order for docker to compute the correct digests and properly load it in the content store.

      It returns a promise that resolves to the new image id.

      Parameters

      • client: Dockerode
      • imageConfig: any

      Returns Promise<string>