dockerfile-json icon indicating copy to clipboard operation
dockerfile-json copied to clipboard

Flag "security" not implemented

Open pitfallincode opened this issue 3 years ago • 1 comments

Hello,

I found that flag "security" for RUN command is not recognized. I would like to catch option like "insecure" in that flag. I use version 1.0.8. You can reproduce the issue with "RUN --security=insecure some_command" https://docs.docker.com/engine/reference/builder/#run---security

Regards,

pitfallincode avatar Aug 03 '22 08:08 pitfallincode

I took a quick look at this for my own needs, and it looks like this is a shortcoming in https://github.com/moby/buildkit, not in dockerfile-json; the error being raised is coming directly from buildkit. For my own needs, this is something I'll be keeping an eye on but I don't know that there's much that can be done with dockerfile-json.

mckern avatar Mar 17 '23 00:03 mckern

Thanks @mckern, you are right.

sgreben avatar Sep 24 '24 17:09 sgreben

Actually, we just have to build buildkit with the dfrunsecurity build tag. I'll add this.

sgreben avatar Sep 24 '24 17:09 sgreben

Fixed in v1.1.0 via #136 :)

sgreben avatar Sep 24 '24 19:09 sgreben