mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2412] Container options not parsed in acrtrc #1110
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @this-oliver on GitHub (Aug 2, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2412
Bug report info
Command used with act
Describe issue
I get the error
Cannot parse container options: '"--group-add $(stat -c %g /var/run/docker.sock)"': 'unknown flag: --group-add $(stat -c %g /var/run/docker.sock)'whenever I try to run act with the command--container-options "--group-add $(stat -c %g /var/run/docker.sock)"in the actrc config file but the issue doesn't appear when I run the same flag directly in the command as followsgh act --container-options "--group-add $(stat -c %g /var/run/docker.sock)".Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
I am running my environment on a Windows Subsystem for Linux (WSL) which depends on the Docker Desktop running on the Windows host (not on the WSL).
@enricojonas commented on GitHub (Oct 16, 2024):
Suffering the same issue - would be nice to be able to use it from actrc instead.
@github-actions[bot] commented on GitHub (Apr 15, 2025):
Issue is stale and will be closed in 14 days unless there is new activity
@emirotin commented on GitHub (Dec 13, 2025):
I was trying to provide two options via the flag in the actrc file
Having them in a single line fails to be parsed
Having multiple
--container-optionslines just uses the last of them@enricojonas commented on GitHub (Dec 15, 2025):
One thing I found out that you can use it in .actrc file. You will need to escape the double dashes.
--container-options \-\-group-add 990@emirotin commented on GitHub (Dec 15, 2025):
Omg double dashes, kinda makes sense, thanks!
On Mon, Dec 15, 2025 at 09:31 Enrico Jonas @.***> wrote: