EnglishFrenchSpanish

Ad


OnWorks favicon

docker-import - Online in the Cloud

Run docker-import in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command docker-import that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


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.

SYNOPSIS


docker import [-c|--change[=[]]] [-m|--message[=MESSAGE]] [--help]
file|URL|-[REPOSITORY[:TAG]]

OPTIONS


-c, --change=[]
Apply specified Dockerfile instructions while importing the image
Supported Dockerfile instructions:
CMD|ENTRYPOINT|ENV|EXPOSE|ONBUILD|USER|VOLUME|WORKDIR

--help
Print usage statement

-m, --message=""
Set commit message for imported image

DESCRIPTION


Create a new filesystem image from the contents of a tarball (.tar, .tar.gz, .tgz, .bzip,
.tar.xz, .txz) into it, then optionally tag it.

EXAMPLES


Import from a remote location


# docker import http://example.com/exampleimage.tgz example/imagerepo

Import from a local file


Import to docker via pipe and stdin:

# cat exampleimage.tgz | docker import - example/imagelocal

Import with a commit message

# cat exampleimage.tgz | docker import --message "New image imported from tarball" - exampleimagelocal:new

Import to a Docker image from a local file.

# docker import /path/to/exampleimage.tgz

Import from a local file and tag


Import to docker via pipe and stdin:

# cat exampleimageV2.tgz | docker import - example/imagelocal:V-2.0

Import from a local directory


# tar -c . | docker import - exampleimagedir

Apply specified Dockerfile instructions while importing the image


This example sets the docker image ENV variable DEBUG to true by default.

# tar -c . | docker import -c="ENV DEBUG true" - exampleimagedir

See also


docker-export(1) to export the contents of a filesystem as a tar archive to STDOUT.

HISTORY


April 2014, Originally compiled by William Henry (whenry at redhat dot com) based on
docker.com source material and internal work. June 2014, updated by Sven Dowideit
SvenDowideit@home.org.au

Use docker-import online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 2
    PyQt
    PyQt
    PyQt is the Python bindings for
    Digia's Qt cross-platform
    application development framework. It
    supports Python v2 and v3 and Qt v4 and
    Qt v5. PyQt is avail...
    Download PyQt
  • 3
    garlic3
    garlic3
    Gambas3* coding tools and examples for
    use in SMB or other organizations that
    make internal programs. E.g. from
    database fields to class sourcecode with
    DbInfo...
    Download garlic3
  • 4
    Sardi
    Sardi
    Sardi is a complete restyling and
    optimisation of svg code. 6 choices for
    your applications and 10 kind of folders
    to use in your file manager. The sardi
    icons...
    Download Sardi
  • 5
    LMMS Digital Audio Workstation
    LMMS Digital Audio Workstation
    LMMS is a free cross-platform software
    which allows you to produce music with
    your computer. If you like this project
    consider getting involved in the project
    h...
    Download LMMS Digital Audio Workstation
  • 6
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS is a market-leading real-time
    operating system (RTOS) for
    microcontrollers and small
    microprocessors. Distributed freely
    under the MIT open source lice...
    Download FreeRTOS Real Time Kernel (RTOS)
  • 7
    Avogadro
    Avogadro
    Avogadro is an advanced molecular
    editor designed for cross-platform use
    in computational chemistry, molecular
    modeling, bioinformatics, materials
    science and ...
    Download Avogadro
  • More »

Linux commands

Ad