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

0 votes

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
• 6,900 points
137 views

2 answers to this question.

0 votes

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,620 points
0 votes

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 by Sirajul
• 20,080 points

Related Questions In Docker

0 votes
2 answers
0 votes
1 answer

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

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

answered Aug 27, 2018 in Docker by Damon Salvatore
• 5,510 points
1,991 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 in Docker by Sirajul
• 20,080 points
60 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,100 points

edited Oct 16, 2018 by lina 3,849 views
0 votes
1 answer
0 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
• 56,520 points
136 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 in Docker by Sirajul
• 20,080 points
227 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,620 points
290 views