mirror of
https://github.com/nektos/act.git
synced 2026-04-27 01:45:52 +03:00
[GH-ISSUE #2578] Cannot bind port for MySQL service #1174
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#1174
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 @shane-smith on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2578
Bug report info
Command used with act
Describe issue
I expected to be able to run my PHPUnit testing workflow.
Unfortunately, when I do so I am presented with an error about port binding failing due to the port already being allocated.
It fails before the first step, when trying to set up the MySQL service. If I comment that service out, the workflow proceeds but fails later due to the missing database (note: I've only included the relevant part at start of workflow file in the 'workflow content' section, but it's a self-contained working example).
This workflow works on GitHub.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@sebastien-perpignane commented on GitHub (Dec 20, 2024):
Hi,
Don't you have mysql already running on port 3306 on your system ?
If yes, this is not a bug. You just cannot have your system running a mysql instance on port 3306 and a container with a port bound to the same port number.
@fahmifan commented on GitHub (Dec 21, 2024):
Is it not possible to run act in non host network mode?
@ChristopherHX commented on GitHub (Dec 21, 2024):
Not for the workflow the original poster has presented. This would require an advanced DinD setup for the localhost part that is not supported.
@ChristopherHX commented on GitHub (Dec 21, 2024):
The following part might break act as well and download the sources from the github instead of the local version