-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker driver security_opts field doesn't match flag behavior #6720
Comments
@tgross I am looking to contribute to nomad, and this is a good first issue I can take a stab at! Are you looking for (1) or (2) or Both?
Also, Is there a slack/IRC for new contributors who have newbie questions? |
Hi @shishir-a412ed and welcome! We'd love to see either or both of those contributions. Fixing the documentation is a good first step for now (which is what I intended to do when I opened this issue but haven't gotten to it). Changing the Nomad task driver to handle the config value in a way that matches user expectations would be even better.
We don't have a public Slack/IRC channel. The best place for those questions would probably be https://discuss.hashicorp.com/c/nomad |
@tgross Thanks! Let me start with (1). Can you point me to the docs in the codebase where (1) needs to be updated? I browsed through the codebase but didn't see a folder for documentation. On a different note, I was also looking to fix #6957 . I see you merged a fix in Any specific reason not to upgrade to |
The markdown for that docs page can be found at: https://github.com/hashicorp/nomad/blob/master/website/pages/docs/drivers/docker.mdx. The README at https://github.com/hashicorp/nomad/tree/master/website should give you some pointers on contributing to that. We just yesterday merged a brand tool suite of tools for developing and building the website, so if you run into any problems with that we'd love to have you open a new issue to let us know. Copied your comments on the gopsutil dependency into #6957 for further discussion. |
Fixes hashicorp#6720 Copy the parsing function from the docker CLI. Docker daemon expects to see JSON for seccomp file not a path.
I'm still facing this issue, can someone help resolve this. Here is the config:
I can confirm that the file is present in the location - /local/seccomp.json within docker container. |
@nagireddygatla I don't think the seccomp profile file can be inside the Docker container image. Otherwise the container could define its own seccomp profile, which seems incorrect given the security purpose. But if you're still having trouble, please open a new issue. |
Yes I defined the file in my repository, and moved the file from repo to docker container using template stanza. And I can see the seccomp file in this location - /local/seccomp.json if I |
Also opened the issue issue # 10060 |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Follow up from #5800, where it was shown that the
config.security_opt
stanza doesn't match the behavior of Docker when a file path is passed in as aseccomp
profile.Our documentation for the Docker task driver's
config.security_opt
stanza says:Because we're using the Docker HTTP API and not the Docker CLI to start Docker tasks, if the Docker CLI does any parsing of the command line arguments before passing them to the HTTP API, we'll see a difference in behavior in Nomad. It appears that this is the case for
security_opts
for theseccomp
option in particular.We can document this as a difference, but should we consider updating the task driver to match the Docker behavior to avoid this gotcha?
The text was updated successfully, but these errors were encountered: