Is it possible to copy Docker images from one host to another without via repository

0 votes

I want to transfer a Docker image from one machine to another without using a repository either private or public?

I  have created my own image in VirtualBox, and when it is finished, I tried to deploy other machines to have real usage.

Since it is based on image such as Red Hat Linux which cannot be recreated from a Dockerfile.

Are there simple commands I can use?

Can anyone help me with this?

Thanks

Aug 29, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
721 views

2 answers to this question.

0 votes

Here is what you can do. First get the container id by using below command:

docker ps

Use that container ID to run:

docker inspect <container ID>

Check the bottom under "NetworkSettings" , you can find "IPAddress"

Or Just do:

docker inspect <container id> | grep "IPAddress"

I hope it would help you resolve your query.

answered Aug 29, 2018 by shubham
• 7,340 points
0 votes

To save an image to any file path or shared NFS place see the following example.

  • Get the image id by doing:
sudo docker images
  • Consider you have an image with id "sample".

Save the image with id:

sudo docker save -o /home/images/sample.tar sample
  • 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 9, 2019 by Sirajul
• 59,230 points

Related Questions In DevOps & Agile

0 votes
1 answer

Is it possible to preserve local ivy repository in Bluemix BUILD & DEPLOY?

You're right--the pipeline spins up a new ...READ MORE

answered Jul 19, 2018 in DevOps & Agile by Atul
• 10,240 points
391 views
0 votes
1 answer

Is it possible to create cloudshell shell without driver?

Yes definitely, it is possible to create ...READ MORE

answered Jul 26, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
404 views
0 votes
2 answers
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,468 views
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,220 points
5,080 views
+1 vote
2 answers

How do I run Apache server from Docker without mapping to a location?

If you're seeing a 500 error, that's ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by lina
• 8,220 points
1,870 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