Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip iteration over untagged images #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dduvnjak
Copy link

@dduvnjak dduvnjak commented Aug 15, 2016

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.

dduvnjak and others added 2 commits August 15, 2016 23:49
Having untagged images present causes a failure
with an `undefined method `first' for nil:NilClass (NoMethodError)`
error message.
@ozbillwang
Copy link
Contributor

ozbillwang commented Jun 25, 2020

doesn't work

git clone [email protected]: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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants