Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker squash command #4232

Closed
wants to merge 1 commit into from
Closed

Commits on Jun 9, 2014

  1. Add docker squash command

    This adds a new cli command like:
    docker squash baseimage leafimage
    
    This command creates a new image that is a child of baseimage
    and has the same content as leafimage. In other words, it combines
    all the layers between baseimage and leafimage into a single
    image.
    
    There are several reasons why this is useful, for instance it is common
    for intermediate layers to add extra files during execution which are
    removed at the end (for instance build dependencies, or e.g. yum/apt-get
    metadata). Removing these makes for a smaller final image.
    
    Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
    alexlarsson committed Jun 9, 2014
    Configuration menu
    Copy the full SHA
    72472fd View commit details
    Browse the repository at this point in the history