docker / docker-bench-security

The Docker Bench for Security is a script that checks for dozens of common best-practices around deploying Docker containers in production.
Apache License 2.0
9.17k stars 1.02k forks source link

"[dumb-init] docker-bench-security.sh: No such file or directory" on Windows 10 when trying to build locally #470

Closed pxds closed 3 years ago

pxds commented 3 years ago

After reading #422 and not seeing a solution for Windows, I kept getting that error until I changed the Dockerfile, adding "sh" to the ENTRYPOINT and it worked. Is that a proper way to buil/drun this container?

ENTRYPOINT [ "/usr/bin/dumb-init", "sh", "docker-bench-security.sh" ]

konstruktoid commented 3 years ago

Hi @pxds, I haven't tested it on Windows but as long as you don't get any errors and everything seems to work, then it's a proper way :)

pxds commented 3 years ago

Hehe then consider it proper :)