keilerkonzept/dockerfile-json

Flag "security" not implemented

Closed this issue · 4 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,

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.

Thanks @mckern, you are right.

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

Fixed in v1.1.0 via #136 :)