Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Using under docker compose #17

Closed
pmatos opened this issue Jul 10, 2020 · 2 comments
Closed

[Question] Using under docker compose #17

pmatos opened this issue Jul 10, 2020 · 2 comments

Comments

@pmatos
Copy link

pmatos commented Jul 10, 2020

Hi,

I am slightly confused as to the usage of github-runner with docker compose.
I have a custom image for CI. If I specify this image in my workflow and select a self-host with github-runner image running, github actions complains with :

##[error]Container feature is not supported when runner is already running inside container.

https://github.com/pmatos/actions-test/runs/853195338?check_suite_focus=true#step:2:1

I was wondering if this is the use case for docker compose, i.e. allow the github-runner service to use another base image. It might be, but I don't know how to use it. Can you provide further information if this is the use case for docker compose? Thanks.

@tcardonne
Copy link
Owner

Hello,

By using a GitHub Runner in Docker, you can't use some features of GitHub Actions. For instance, you can't use the container feature in your workflows. This issue is being tracked in actions/runner#406.

This isn't something really related to docker-compose, as compose is more like a shortcut to start the runner.

Hope this helps

@pmatos
Copy link
Author

pmatos commented Jul 11, 2020

Thanks. Closing then.

@pmatos pmatos closed this as completed Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants