mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #835] Question: Step container network mode #508
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#508
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 @Jacob-Morgan on GitHub (Oct 6, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/835
Originally assigned to: @catthehacker on GitHub.
I have a GitHub workflow which launches a container to execute the build process this in turn launches a docker-compose stack for integration test which talks back to the build container for endpoint mocking. While this works locally and in Github, when attempting to run the workflow locally using ACT it fails. The failure is caused by a change made in #141 where-by it starts a step container in network isolation mode sharing the same network namespace as the ACT container used to launch the build container. This in turn then prevents the build container from joining the network created by the launch of the docker-compose stack.
I've managed to verify that relaxing the network mode back to 'default' (
github.com/pharos/act@6f9a94dd07) resolves the problem. However I struggling to understand the original intent of #141 by forcing newly launched containers into such a restrictive network mode, as this is very different form GitHub.The following workflow and action where used to verify the networking information for the build container is blank and the NetworkMode is 'container:' when launched by Act, but is populated when run by Github.
Workflow
dockerwithactions_job.@github-actions[bot] commented on GitHub (Nov 7, 2021):
Issue is stale and will be closed in 14 days unless there is new activity