Adding instructions in Dockerfile : `CMD --privileged sh -c command1 && command2 ... `
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.3k
- Forks
- 1.5k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 48
Description
Description
Newbie. Please don't hit too hard.
It is necessary to run privileged commands during container running.
Adding instructions in Dockerfile : CMD --privileged sh -c command1 && command2 ...
You can also add such functionality to the CLI run --privileged-cmd="cmd1&&cmd2"
The command runs after the volumes are initialized.
For example, it will be possible to put such a command only before ENTRYPOINT.
This eliminates the need to assign privileges to the container to be able to execute a privileged command.
This behavior will allow administrators to expand the functionality of the container without endangering it.
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
The issue names a Dockerfile CMD form and a CLI run option, but no source files or tests. Start by locating the Dockerfile instruction handling and the CLI run entry point; clarify the supported syntax, execution timing, privilege model, and tests needed to establish when the feature is complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, dockerfile, go
- Domain
- build-system, cli, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100