github.com/stchris/docker@v1.4.2-0.20150106053530-1510a324dbd5/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  [**-m**|**--message**[=*MESSAGE*]]
    11  [**-p**|**--pause**[=*true*]]
    12  CONTAINER [REPOSITORY[:TAG]]
    13  
    14  # DESCRIPTION
    15  Using an existing container's name or ID you can create a new image.
    16  
    17  # OPTIONS
    18  **-a**, **--author**=""
    19     Author (e.g., "John Hannibal Smith <hannibal@a-team.com>")
    20  
    21  **-m**, **--message**=""
    22     Commit message
    23  
    24  **-p**, **--pause**=*true*|*false*
    25     Pause container during commit. The default is *true*.
    26  
    27  # EXAMPLES
    28  
    29  ## Creating a new image from an existing container
    30  An existing Fedora based container has had Apache installed while running
    31  in interactive mode with the bash shell. Apache is also running. To
    32  create a new image run docker ps to find the container's ID and then run:
    33  
    34      # docker commit -m="Added Apache to Fedora base image" \
    35        -a="A D Ministrator" 98bd7fc99854 fedora/fedora_httpd:20
    36  
    37  # HISTORY
    38  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
    39  based on docker.com source material and in
    40  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
    41  July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>