Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load a Docker image from a tar file

I have installed Docker for Windows. I have downloaded HDP_2.5_docker.tar from http://hortonworks.com/downloads/#sandbox which is a 10 GB file.

How can I load an image tar file? I have tried this command:

docker import HDP_2.5_docker.tar 
like image 207
User Learning Avatar asked Nov 14 '16 05:11

User Learning


People also ask

Is docker image a tar file?

A container image is a tar file containing tar files. Each of the tar file is a layer. Once all tar files have been extract into the same location then you have the container's filesystem. This can be explored via Docker.


Video Answer


1 Answers

You can use docker load

Usage:  docker load [OPTIONS]  Load an image from a tar archive or STDIN 

Git bash console:

docker load < HDP_2.5_docker.tar 

Windows cmd:

docker load -i windowsservercore.tar 
like image 187
VladoDemcak Avatar answered Sep 21 '22 11:09

VladoDemcak