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
• 4,320 points
81 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
• 39,540 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,510 points
55 views
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
• 39,540 points
391 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,510 points
3,947 views
0 votes
2 answers
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,940 points
235 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 in Docker by Sirajul
• 39,540 points
83 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 in Docker by Sirajul
• 39,540 points
1,765 views