github.com/eikeon/docker@v1.5.0-rc4/docs/man/docker-commit.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-commit - Create a new image from a container's changes
     6  
     7  # SYNOPSIS
     8  **docker commit**
     9  [**-a**|**--author**[=*AUTHOR*]]
    10  [**--help**]
    11  [**-m**|**--message**[=*MESSAGE*]]
    12  [**-p**|**--pause**[=*true*]]
    13  CONTAINER [REPOSITORY[:TAG]]
    14  
    15  # DESCRIPTION
    16  Using an existing container's name or ID you can create a new image.
    17  
    18  # OPTIONS
    19  **-a**, **--author**=""
    20     Author (e.g., "John Hannibal Smith <hannibal@a-team.com>")
    21  
    22  **--help**
    23    Print usage statement
    24  
    25  **-m**, **--message**=""
    26     Commit message
    27  
    28  **-p**, **--pause**=*true*|*false*
    29     Pause container during commit. The default is *true*.
    30  
    31  # EXAMPLES
    32  
    33  ## Creating a new image from an existing container
    34  An existing Fedora based container has had Apache installed while running
    35  in interactive mode with the bash shell. Apache is also running. To
    36  create a new image run docker ps to find the container's ID and then run:
    37  
    38      # docker commit -m="Added Apache to Fedora base image" \
    39        -a="A D Ministrator" 98bd7fc99854 fedora/fedora_httpd:20
    40  
    41  # HISTORY
    42  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
    43  based on docker.com source material and in
    44  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
    45  July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>