I want to generate/get a Dockerfile for an image that is pushed to registry, one that I don't have locally, without docker pull that image. I know it's possible to do this with docker CLI if the image already exists locally.
            Asked
            
        
        
            Active
            
        
            Viewed 640 times
        
    0
            
            
         
    
    
        Varun Narayanan
        
- 343
- 6
- 17
- 
                    1I don't think this is possible, even when the image exists locally. How would you do that? – Henry Nov 20 '20 at 05:40
- 
                    Check this https://stackoverflow.com/questions/37905763/how-do-i-download-docker-images-without-using-the-pull-command – Ashok Nov 20 '20 at 09:00
- 
                    You can create a tar ball and can load it – Ashok Nov 20 '20 at 09:00
- 
                    I think you cannot generate Dockerfile even if you load image locally using tarball. All you can do is use "docker inspect" command to get all info about image. then generate Dockerfile yourself from there. even this method have some limitations – Rezwan Nov 20 '20 at 10:02