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

Use docker-import online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    wxPython
    wxPython
    A set of Python extension modules that
    wrap the cross-platform GUI classes from
    wxWidgets.. Audience: Developers. User
    interface: X Window System (X11), Win32 ...
    Download wxPython
  • 2
    packfilemanager
    packfilemanager
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 3
    IPerf2
    IPerf2
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 4
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 5
    Matplotlib
    Matplotlib
    Matplotlib is a comprehensive library
    for creating static, animated, and
    interactive visualizations in Python.
    Matplotlib makes easy things easy and
    hard thing...
    Download Matplotlib
  • 6
    BotMan
    BotMan
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • More »

Linux commands

Ad