-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add option to remove container when action is done #285
Comments
I should add, dev containers normally works fine when I use it directly in my project repo. I can do |
This looks like opencontainers/runc@8e1cd2f which made it into runc 1.1.12. You can check the runc version with |
@chrmarti Sorry, to update this issue, this issue only happens when there was an issue with the container itself, and it didn't stop properly, and then on the next run it tries to start that same container. For some reason the devcontainer ci doesn't clean up after itself. I added an extra step in GH actions to manually stop and prune all containers so that it always starts a fresh one on the next run:
|
Otherwise, docker version is:
|
We could add an option to remove the container when the action is done. |
Hi, I'm getting the following error when Github actions is trying to start a container and run commands. I have a simple workflow file, running on a self hosted runner.
Github actions can build the dev container, but fails at the "run command in container" step of the "Build and run dev container" task.
I'm not sure exactly where this is originating from. If I
cd
to/home/me/actions-runner/_work/my_repo
and dodevcontainer exec --workspace-folder .
I get the same error msg:OCI runtime exec failed: exec failed: unable to start container process: current working directory is outside of container mount namespace root -- possible container breakout detected: unknown
The text was updated successfully, but these errors were encountered: