stelligent / cfn_nag

Linting tool for CloudFormation templates
MIT License
1.26k stars 212 forks source link

issue when trying to use the docker image #609

Closed boddumanohar closed 2 years ago

boddumanohar commented 2 years ago

when I try to run the docker image I get this error:

root@Ubuntu-2004-focal-64-minimal ~ # docker run stelligent/cfn_nag sh -c "cfn_nag_scan  --help"
Unable to find image 'stelligent/cfn_nag:latest' locally
latest: Pulling from stelligent/cfn_nag
59bf1c3509f3: Already exists
ecfdfc99c764: Pull complete
dfcec1f1cb7c: Pull complete
6325120d0421: Pull complete
e3fc6ecdde23: Pull complete
c4d1cbf6e464: Pull complete
5a73c152f1ce: Pull complete
Digest: sha256:40a203945f918c57a58d57579887c64165e66416e853900f5127342f8d5c202d
Status: Downloaded newer image for stelligent/cfn_nag:latest
/usr/local/bundle/gems/cfn-nag-0.8.9/lib/cfn-nag/cfn_nag_executor.rb:107:in `read': No such file or directory @ rb_sysopen - cfn_nag_scan  --help (Errno::ENOENT)
    from /usr/local/bundle/gems/cfn-nag-0.8.9/lib/cfn-nag/cfn_nag_executor.rb:107:in `read_conditionally'
    from /usr/local/bundle/gems/cfn-nag-0.8.9/lib/cfn-nag/cfn_nag_executor.rb:96:in `execute_io_options'
    from /usr/local/bundle/gems/cfn-nag-0.8.9/lib/cfn-nag/cfn_nag_executor.rb:22:in `scan'
    from /usr/local/bundle/gems/cfn-nag-0.8.9/bin/cfn_nag:11:in `<top (required)>'
    from /usr/local/bundle/bin/cfn_nag:23:in `load'
    from /usr/local/bundle/bin/cfn_nag:23:in `<main>'