Add support --privileged when create service
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.7k
- Forks
- 676
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 6
Description
When create some container, we need privileged=True. But swarmkit does not support this.
I want to implement this by the following steps:
- Add
privilegedfield in ContainerSpec. - Pass
privilegedto HostConfig when create container.
If it's the right direction, I will submit a PR. :)
Also, there so many container options in docker-engine. If all the options are supported in that way, It's a huge work.Maybe we need have a good way to support all the options?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating ContainerSpec and the code that creates containers and passes settings to HostConfig. Trace how existing container options flow through these structures, then add privileged support and tests confirming the value reaches container creation; done means privileged containers can be created through the service path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100