How to save a Docker image in tar file

0 votes

Hi Guys,

I have created a Docker image in the Docker host. Now I want to share this image with another host. How can save this image in a tar file?

Sep 28, 2020 in Docker by akhtar
• 38,240 points
1,789 views

1 answer to this question.

0 votes

Hi@akhtar,

Sometimes we may require to copy an image from one machine to another machine. That time we can save an image to a tar file and load the image in another system.

$ docker save -o <path for generated tar file> <image name>
answered Sep 28, 2020 by MD
• 95,340 points

Related Questions In Docker

0 votes
1 answer

How to save a Dynamic port in Docker for Windows?

The mapped ports can be accessed via ...READ MORE

answered Sep 4, 2018 in Docker by Tyrion anex
• 8,690 points
286 views
0 votes
1 answer

how do I create an image from a tar archive in docker?

You can use docker load command inorder to get ...READ MORE

answered Jul 2, 2019 in Docker by Sirajul
• 59,170 points
3,882 views
0 votes
1 answer

How to store data in external drive with Docker Postgres:9.3 image?

Apparently, the problem would be in your ...READ MORE

answered Jul 12, 2018 in Docker by Kalgi
• 2,680 points
1,589 views
0 votes
2 answers

How to edit file after I shell to a docker container?

You can even install it using a ...READ MORE

answered Apr 23, 2019 in Docker by Ashish
16,697 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,060 points
1,551 views
0 votes
1 answer
+1 vote
1 answer

How to install packages in a Docker container?

Hi@akhtar, To install packages in a docker container, ...READ MORE

answered Apr 15, 2020 in Docker by MD
• 95,340 points
65,364 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP