How to transfer docker images from one machine to another without using a repository

0 votes
I created my own docker image on a virtualbox and I want to deploy it to other machines without using the repository.

Are there any simple commands to do this?
Jul 11, 2018 in Docker by Tyrion anex
• 8,700 points
12,006 views

2 answers to this question.

0 votes

You can do this by saving the docker image as a tar file using the following command:

docker save -o <path for generated tar file> <image_name>

After this, copy your image to another system(using cp or scp) Once this is done, load the image into docker using the following command:

docker load -i <path to image tar file
answered Jul 11, 2018 by Sophie may
• 10,610 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, 2019 by Sirajul
• 59,230 points

Related Questions In Docker

+1 vote
2 answers
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
11,933 views
0 votes
1 answer

How to mount directories from a docker-machine to my local host?

You could do this using the docker-machine ...READ MORE

answered Jul 9, 2019 in Docker by Sirajul
• 59,230 points
4,499 views
0 votes
1 answer
+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,090 points
2,464 views
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,610 points
3,268 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