How to copy docker images from one host to another without a repository

+1 vote

I create my own image in virtualbox and deploy it on other machines. I’m not able to recreate images from dockerfile. How to transfer docker image from one machine to another one without using a repository, doesn’t matter if its private or public?

Jul 19, 2018 in Docker by Nilesh
• 7,060 points
11,239 views

2 answers to this question.

+1 vote

You will need to save the docker image as a tar file:

docker save -o <path for generated tar file> <image name>

Then copy your image to a new system with regular file transfer tools such as cp or scp. After that you will have to load the image into docker:

docker load -i <path to image tar file>

I hope this helps you

answered Jul 19, 2018 by Kalgi
• 2,680 points
+1 vote

To save an image to any file path or shared NFS place, 

  • To get the image id:

sudo docker images
  • Say you have an image with id "table-data".

  • Save the image with id:

sudo docker save -o /home/table/table-data.tar table-data
  • Copy the image from the path to any host. Now import to your local Docker installation using:

sudo docker load -i <path to copied image file>
answered Aug 13, 2019 by Sirajul
• 59,230 points

Related Questions In Docker

0 votes
2 answers
+1 vote
2 answers

How do I copy a file from docker container to host?

Here is a way which you can ...READ MORE

answered Aug 28, 2018 in Docker by Damon Salvatore
• 5,980 points
28,606 views
0 votes
1 answer

How to move Docker containers from one host to another?

Yes you could definitely do it the ...READ MORE

answered Jul 2, 2019 in Docker by Sirajul
• 59,230 points
12,297 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 34,235 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,737 views
0 votes
2 answers

How to execute docker exec commande inside a docker container ?

You need to get inside the container ...READ MORE

answered Aug 13, 2019 in Docker by Sirajul
• 59,230 points
3,823 views
0 votes
1 answer

Error “unable to resolve host docker”

This error occurs because its not a ...READ MORE

answered Jul 10, 2018 in Docker by Kalgi
• 2,680 points
4,902 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP