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,380 points

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
• 9,940 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
• 54,190 points

Related Questions In Docker

0 votes
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
• 54,190 points
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
• 54,190 points
+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,200 points

edited Oct 16, 2018 by lina 13,027 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
• 57,530 points
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
• 9,940 points