Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27608

option to squash image commits

XMLWordPrintable

      you can't use `RUN rm /tmp` to cleanup image from unnecessary files created by previous commands in Dockerfile. This results in complex Dockerfile or one-line RUN commands.

      using docker export | docker import you can "squash" the image layers into a single one-layer docker image, making Dockerfile simpler and preserving image size.

            Unassigned Unassigned
            ndeloof Nicolas De Loof
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: