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 27 in Docker by akhtar
• 27,980 points
67 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 27 by MD
• 64,820 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,560 points
135 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
• 58,130 points
840 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,620 points
774 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
10,831 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
• 57,680 points
838 views
0 votes
1 answer
0 votes
1 answer

How to install packages in a Docker container?

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

answered Apr 15 in Docker by MD
• 64,820 points
7,708 views