How to load a Docker image from a tar file

User Learning picture User Learning · Nov 14, 2016 · Viewed 99.6k times · Source

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

Answer

VladoDemcak picture VladoDemcak · Nov 14, 2016

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