actions / actions/runner

Support --privileged or --cap-add for docker containers

Open
#754 1 comment 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement future
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

Describe the enhancement
Facilities for controlling how a runner's container are constrained to volumes, ports, and environment. This restricts the kinds of things that can be accomplished inside the container. In my specific case, I run my jobs as root in the container, and I'd like access to iptables.

Code Snippet
Proposed sample:

         container:
             image: connectedhomeip/chip-build-cirque:0.4.10
             volumes:
                 - "/tmp:/tmp"
                 - "/dev/pts:/dev/pts"
             env:
                 LOG_DIR: /tmp/cirque_test_output/
                 CLEANUP_DOCKER_FOR_CI: 1
             options: "--privileged"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating how the runner translates container settings such as volumes, ports, environment variables, and the proposed options field into Docker container creation. Validate the result with a workflow using options: "--privileged" and confirm that equivalent --cap-add settings reach the container.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.