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, 2019 in Docker by Sam
• 6,260 points
8,700 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, 2019 by Sirajul
• 59,230 points

Related Questions In Docker

+1 vote
2 answers

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,980 points
1,015 views
+1 vote
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, 2019 in Docker by Sirajul
• 59,230 points
4,547 views
0 votes
1 answer
+1 vote
2 answers

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

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

answered Aug 28, 2018 in Docker by Damon Salvatore
• 5,980 points
28,606 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,020 points
2,737 views
0 votes
1 answer

How do I create a service using an image from a private registry?

Hey @Ruby, If your image is available ...READ MORE

answered Jul 8, 2019 in Docker by Sirajul
• 59,230 points
1,100 views
0 votes
2 answers

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

You could try this inorder to clean ...READ MORE

answered Aug 6, 2019 in Docker by Sirajul
• 59,230 points
10,730 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