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
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
You can use docker load
Usage: docker load [OPTIONS]
Load an image from a tar archive or STDIN
docker load < HDP_2.5_docker.tar
docker load -i windowsservercore.tar
HDP_2.5_docker
is located (or use path for HDP_2.5_docker
file). Also check whether file extension is not tar.gz
by default the name of downloaded file should be HDP_2.5_docker.tar.gz
–
Ditto docker.exe load < windowsservercore.tar
, returns requested load from stdin, but stdin is empty
. The following one works though: docker.exe load -i windowsservercore.tar
. I think the answer is incorrect (question is marked with "windows") and should be fixed. –
Sharl -i
flag! –
Amitie docker load -i <file>
in both Windows and Linux (bash)... –
Pape Firstly, put the tar file under your user folder: i.e: C:\Users\yourName\xxx.tar
Secondly, run the Docker load CMD:
docker load -i xxx.tar
After it is done, we could see the file is loaded as Docker images by running CMD:
docker images
requested load from stdin, but stdin is empty
, but this method worked. Thanks –
Unchartered you can do:
docker image import file.tar images_name:image_tag
docker load
worked fine when running the docker image. –
Roguery docker load
and docker import
have subtle but important distinctions #36925761. The .tar created from docker save
provides a ton of context that is lost when imported with docker import
-- using docker load -i
instead maintains that context and allows the image to be run directly –
Siloam Load the desired docker file, assuming you are in the same directory as the tar file, you can use -
$ docker load -i filename.tar
On successful import, you will see a success message along with the image ID
Check in the docker images for the image ID that you just received:
docker images
You will see the docker loaded successfully in the docker images list. However, there is one thing worth mentioning in case you might get confused; the date reflected in the command output might reflect the date when docker is created. Assuming, docker got created 5 days ago then the same will be shown in the output. Better way to confirm if your docker is loaded or not is to check for the image ID or repo and tag name (if you know).
You can finally run the docker using the command -
$ docker run -it image-ID
© 2022 - 2024 — McMap. All rights reserved.
The system cannot find the file specified
. – Atheistic