github.com/nguyentm83/docker@v1.5.0/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 [**--help**] 10 URL|- [REPOSITORY[:TAG]] 11 12 # DESCRIPTION 13 Create a new filesystem image from the contents of a tarball (`.tar`, 14 `.tar.gz`, `.tgz`, `.bzip`, `.tar.xz`, `.txz`) into it, then optionally tag it. 15 16 # OPTIONS 17 **--help** 18 Print usage statement 19 20 # EXAMPLES 21 22 ## Import from a remote location 23 24 # docker import http://example.com/exampleimage.tgz example/imagerepo 25 26 ## Import from a local file 27 28 Import to docker via pipe and stdin: 29 30 # cat exampleimage.tgz | docker import - example/imagelocal 31 32 ## Import from a local file and tag 33 34 Import to docker via pipe and stdin: 35 36 # cat exampleimageV2.tgz | docker import - example/imagelocal:V-2.0 37 38 ## Import from a local directory 39 40 # tar -c . | docker import - exampleimagedir 41 42 # HISTORY 43 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 44 based on docker.com source material and internal work. 45 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>