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

0 votes
I have a tar archive gzip file of a docker container. How do I get the image of that docker container?
Jul 2 in Docker by Sam
• 1,070 points
16 views

1 answer to this question.

0 votes

You can use docker load command inorder to get the image from that tar archive file. 

docker load [OPTIONS] tar file

For a better understanding you can refer to:Load an image or repository from a tar archive (even if compressed with gzip, bzip2, or xz) from a file or STDIN. It restores both images and tags.

https://docs.docker.com/engine/reference/commandline/load/

answered Jul 2 by Sirajul
• 5,960 points

Related Questions In Docker

0 votes
1 answer

How do I remove an image in Docker?

Here is what you can try. Use docker ...READ MORE

answered Sep 4, 2018 in Docker by Damon Salvatore
• 5,490 points
35 views
0 votes
1 answer

How do I force Docker for a clean build of an image ?

You can try the following step: You have ...READ MORE

answered Sep 7, 2018 in Docker by Damon Salvatore
• 5,490 points
561 views
0 votes
1 answer

How do I copy a file from docker container to host?

Here is a way which you can ...READ MORE

answered Aug 27, 2018 in Docker by Damon Salvatore
• 5,490 points
1,457 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
• 56,160 points
99 views
0 votes
1 answer
0 votes
1 answer

What is a docker file? How do I create a docker image with dockerfile?

 A Dockerfile is a script/text configuration file that contains ...READ MORE

answered Jun 7 in Docker by Sirajul
• 5,960 points
249 views