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,210 points
907 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,300 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
240 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,070 points
2,836 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,351 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,073 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,140 points
1,318 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,300 points
44,062 views