Class DefaultDockerClient.CreateProgressHandler

  • All Implemented Interfaces:
    ProgressHandler
    Enclosing class:
    DefaultDockerClient

    private static class DefaultDockerClient.CreateProgressHandler
    extends java.lang.Object
    implements ProgressHandler
    Hack: this ProgressHandler is meant to capture the image ID (or image digest in Docker 1.10+) of an image being created. Weirdly enough, Docker returns the ID or digest of a newly created image in the status of a progress message.

    The image ID/digest is required to tag the just loaded image since, also weirdly enough, the pull operation with the fromSrc parameter does not support the tag parameter. By retrieving the ID/digest, the image can be tagged with its image name, given its ID/digest.

    • Field Detail

      • EXPECTED_CHARACTER_NUM1

        private static final int EXPECTED_CHARACTER_NUM1
        See Also:
        Constant Field Values
      • EXPECTED_CHARACTER_NUM2

        private static final int EXPECTED_CHARACTER_NUM2
        See Also:
        Constant Field Values
      • imageId

        private java.lang.String imageId
    • Constructor Detail

      • CreateProgressHandler

        private CreateProgressHandler​(ProgressHandler delegate)
    • Method Detail

      • getImageId

        private java.lang.String getImageId()