github.com/stchris/docker@v1.4.2-0.20150106053530-1510a324dbd5/docs/man/docker-import.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-import - Create an empty filesystem image and import the contents of the tarball (.tar, .tar.gz, .tgz, .bzip, .tar.xz, .txz) into it, then optionally tag it.
     6  
     7  # SYNOPSIS
     8  **docker import**
     9  URL|- [REPOSITORY[:TAG]]
    10  
    11  # DESCRIPTION
    12  Create a new filesystem image from the contents of a tarball (`.tar`,
    13  `.tar.gz`, `.tgz`, `.bzip`, `.tar.xz`, `.txz`) into it, then optionally tag it.
    14  
    15  # OPTIONS
    16  There are no available options.
    17  
    18  # EXAMPLES
    19  
    20  ## Import from a remote location
    21  
    22      # docker import http://example.com/exampleimage.tgz example/imagerepo
    23  
    24  ## Import from a local file
    25  
    26  Import to docker via pipe and stdin:
    27  
    28      # cat exampleimage.tgz | docker import - example/imagelocal
    29  
    30  ## Import from a local file and tag
    31  
    32  Import to docker via pipe and stdin:
    33  
    34      # cat exampleimageV2.tgz | docker import - example/imagelocal:V-2.0
    35  
    36  ## Import from a local directory
    37  
    38      # tar -c . | docker import - exampleimagedir
    39  
    40  # HISTORY
    41  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
    42  based on docker.com source material and internal work.
    43  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>