mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #895] Nested container issue #529
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#529
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dreibh on GitHub (Nov 20, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/895
I am trying to use the uraimo/run-on-arch-action action (https://github.com/uraimo/run-on-arch-action), which runs an additional container to usually run the build with another architecture (using QEMU). This is working in GitHub, but failing with act, due to different behaviour. This issue may be related to https://github.com/nektos/act/issues/732.
Workflow:
Expected behaviour with act -v -j run-on-arch-buster-aarch64:
Sucessfully preparing the container, then running the installation steps and finally printing some information (here: uname -a).
In GitHub, this is successful.
Act fails:
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/run/act/actions/uraimo-run-on-arch-action@v2.1.1/src/run-on-arch-commands.sh": stat /run/act/actions/uraimo-run-on-arch-action@v2.1.1/src/run-on-arch-commands.sh: no such file or directory: unknown.The issue is that a file "run-on-arch-commands.sh" is not found, which should be in a volume mounted into the container. But the directory is empty.
I did some investigations:
The run-on-arch action is not starting a container inside the ACT container. It tries to provide some directories of the hierarchy above as volumes into the new container.
However, instead of getting the files of part 2 (i.e. from the ACT container) into the new container, it seems to get the file hierarchy from the host machine. That is, inside the container created by run-on-arch:
That is, the run-on-arch container got the volumes from the host machine, but not -- as expected -- from the act container.
So, something in act is different from the GitHub behaviour. May be the container created by act has to be specially configured to handle the nested containerisation correctly?
@github-actions[bot] commented on GitHub (Dec 21, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@renaudguerin commented on GitHub (May 24, 2024):
I have a very similar issue. Was this ever resolved ?