Add option to remove container when action is done
@chrmarti arbeitet bereits daran.
Seit 26.3.2024.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
name: run-tests
run-name: ${{ github.actor }} is running
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- develop
workflow_dispatch:
env:
ARCH: amd64
jobs:
run-tests:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Build and run dev container task
uses: devcontainers/[email protected]
with:
# ci.sh script builds and runs all unit tests
runCmd: chmod +x ./ci.sh && ./ci.sh
env:
ARCH: amd64
Github actions can build the dev container, but fails at the "run command in container" step of the "Build and run dev container" task.
🚀 Run command in container
About to run devcontainer exec --workspace-folder /home/me/actions-runner/_work/my_repo --remote-env GITHUB_OUTPUT=/mnt/github/output --remote-env GITHUB_ENV=/mnt/github/env --remote-env GITHUB_PATH=/mnt/github/path --remote-env GITHUB_STEP_SUMMARY=/mnt/github/step-summary bash -c chmod +x ./ci.sh && ./ci.sh
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
Error: Dev container exec failed: (exit code: 126)
Error: Dev container exec failed: (exit code: 126)
I'm not sure exactly where this is originating from. If I cd to /home/me/actions-runner/_work/my_repo and do devcontainer 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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 499
- Forks
- 101
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus devcontainers/ci
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
devcontainers/ci#446 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
devcontainers/ci#445 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
devcontainers/ci#444 · 2 Kommentare · 3 Reaktionen ·
-
Inputs are wrong in post step when action is called through a nested composite actionEvtl. wieder frei @v-Kaniska244 hat das vor 61 Tagen übernommen, und es ist kein Pull Request offen. Offen
devcontainers/ci#442 · 1 zugewiesene Person ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
devcontainers/ci#437 ·
Alle Issues in devcontainers/ci
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Comfy-Org/ComfyUI_frontend#20346 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
decentralized-identity/didwebvh-ts#203 ·
Maintainer antworten meist innerhalb von 1 Tag
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
lingdojo/kana-dojo#31791 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Telegram webhook: line breaks lost since switch to rich messagesEvtl. vergeben @Kshot3000 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
github_actions security
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag