windowsdockerhortonworks-sandbox

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

Solution

  • 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