Is there a list of used ports? #25550
-
Hey there 👋 I am currently experimenting with GitHub Actions, and although my first impression is pretty good, a question came up: In my tests I am building a number of Docker containers (this is actually part of the test), and after that I start them using Basically, this works (at least on Ubuntu), but some of the ports I would like to use are already being used. So, my question is: Is there a list of already used ports available somewhere? Have a nice day, Golo |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
You can add one step to run docker ps –a command to list all containers and in your workflow. And then run docker port CONTAINER to show all mapped ports. Please refer to this docker port document: https://docs.docker.com/engine/reference/commandline/port/ What’s the exact error message you got? For us to understand your scenario more clearly, could you please share your workflow yml content and workflow run logs here? If you use a public repo, could you provide your workflow link? |
Beta Was this translation helpful? Give feedback.
-
Hi Yanjingzhu! Thanks for your answer! The repository is actually public, and you can find it (including the GitHub actions branch) here: https://github.com/thenativeweb/wolkenkit/tree/introduce-github-actions The concrete error message is: Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use. The appropriate build is this one: https://github.com/thenativeweb/wolkenkit/commit/96c715cba2657cdb4f71bc16fc6b0ffe2db28685/checks?check_suite_id=324771001 Thanks for the hint with docker ps, but I was hoping for an official list (maybe not all currently free ports are available in the long run), but it’s a way to go… Looking forward to your feedback and ideas :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
Thank you for your workfkow yml and logs. 3306 port is the default port which used by MySQL. MySQL is installed on Github actions Ubuntu runner. So before set-up a MySQL which host port is 3306 in Docker, please make sure the Default MySQL has been shutted-down. Please add a step before Run roboter to shutdown the Default MySQL:
For more information, please refer to https://github.com/mirromutth/mysql-action#shutdown-the-default-mysql |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot :slight_smile: |
Beta Was this translation helpful? Give feedback.
Thank you for your workfkow yml and logs. 3306 port is the default port which used by MySQL. MySQL is installed on Github actions Ubuntu runner.
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#ubuntu-1804-lts
So before set-up a MySQL which host port is 3306 in Docker, please make sure the Default MySQL has been shutted-down.
Please add a step before Run roboter to shutdown the Default MySQL:
For more information, please refer to https://github.com/mirromutth/mysql-a…