EnglishFrenchSpanish

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
[email protected]

Use docker-import online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 2
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 3
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 4
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • 5
    Task Coach
    Task Coach
    Task Coach - Your friendly task
    manager. Task Coach is a free open
    source todo manager. It grew out of
    frustration about other programs not
    handling composite ...
    Download Task Coach
  • 6
    HyperSQL Database Engine (HSQLDB)
    HyperSQL Database Engine (HSQLDB)
    HSQLDB is a relational database engine
    written in Java, with a JDBC driver,
    conforming to ANSI SQL:2016. A small,
    fast, multithreaded engine and server
    with mem...
    Download HyperSQL Database Engine (HSQLDB)
  • More »

Linux commands

Ad