mitre / inspec_tools

A command-line and ruby API of utilities, converters and tools for creating, converting and processing security baseline formats, results and data
https://inspec-tools.mitre.org/
Other
91 stars 30 forks source link

inspec_tools docker container doesn't let me go into a bash shell #184

Closed aaronlippold closed 4 years ago

aaronlippold commented 4 years ago

➜ ~ docker run -it -v$(pwd):/share mitre/inspec_tools /bin/bash

Can't find bin/bash

rbclark commented 4 years ago

This is as designed, you are supposed to use it as if it were an inspec binary.

Because of this, the entrypoint of the container is inspec_tools, and not bash. This means that if you want to drop into a bash shell you have to add --entrypoint /bin/sh to the middle of your docker command.

Also, alpine doesn't include bash, it only includes sh.