CenturyLinkLabs / dockerfile-from-image

574 stars 134 forks source link

Skip iteration over untagged images #17

Open dduvnjak opened 8 years ago

dduvnjak commented 8 years ago

Having untagged images present causes a failure with this error:

dockerfile-from-image.rb:33:in `block in <main>': undefined method `first' for nil:NilClass (NoMethodError)
    from dockerfile-from-image.rb:32:in `each'
    from dockerfile-from-image.rb:32:in `each_with_object'
    from dockerfile-from-image.rb:32:in `<main>'

This commit updates the script to simply ignore those images.

ozbillwang commented 4 years ago

doesn't work

git clone git@github.com:dduvnjak/dockerfile-from-image.git dduvnjak/dockerfile-from-image
cd dduvnjak/dockerfile-from-image
docker build -t dfimage . 
alias dfimage="docker run -v /var/run/docker.sock:/var/run/docker.sock --rm dfimage"
docker pull devopsqa/fortify

dfimage devopsqa/fortify

No any output

I am looking for a image to run with fortify, and find it in hub.docker.com. I 'd like to reverse its Dockerfile. this image devopsqa/fortify is huge,

docker images devopsqa/fortify
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
devopsqa/fortify    latest              9db34bb78a6e        2 years ago         3.04GB