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

Container feature is not supported when runner is already running inside container. #61

Closed
ScottPierce opened this issue Oct 14, 2020 · 4 comments

Comments

@ScottPierce
Copy link

I already saw #42

My question is - how is everyone not running into this? It seems like this is a restriction for all OS?
https://github.com/actions/runner/blob/f9b5d626c5486d1f02b3bd45879f61834b7aeecc/src/Runner.Worker/ContainerOperationProvider.cs#L57-L70

The docker runner seems pointless if we can't launch other containers from it. Can someone else describe how they have this working so that I can emulate it?

@myoung34
Copy link
Owner

how is everyone not running into this?

Not every workflow kicks off docker

To be honest your best bet is to try and make progress on getting upstream support for actions/runner#406

@BretFisher
Copy link
Contributor

Yep, same issue. Tried to add an Actions Service to a job, and got this error. It checks cgroups, so I don't see a hacky way around it (other then not using Job Services).

I'll submit a PR to highlight this limitation at the top of the readme so someone doesn't spend time trying to implement this container image, only to find out later it limits GHA functionality.

@myoung34
Copy link
Owner

@BretFisher It's documented here

@BretFisher
Copy link
Contributor

Yea, but I read that as saying "docker isn't officially supported by GitHub as a way to run runners", not "using this image will limit GHA functionality" so hopefully that clarification helped. Thanks for all you do.

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

3 participants