-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
nodejs cannot be found when running Docker inside Docker #261
Comments
What is your yaml?
Example:
|
My YAML is pretty huge, so here is a shortened version that would trigger the issue: name: Linux Server CI Build
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
push:
branches:
- master
jobs:
build:
name: "${{matrix.os}}, ${{matrix.arch}}"
strategy:
matrix:
include:
- os: fedora-37
image: docker.io/overte/overte-server-build:0.1.2-fedora-37-aarch64
arch: aarch64
runner: linux_aarch64
fail-fast: false
runs-on: ${{matrix.runner}}
container: ${{matrix.image}}
steps:
- uses: actions/checkout@v3
with:
submodules: false
fetch-depth: 1 This will run the workflow inside of a new overte-server-build:0.1.2-fedora-37-aarch64 container instead of the docker-github-actions-runner container directly. Running inside docker-github-actions-runner directly without an additional container doesn't trigger the issue. Here is a partial explaination on what happens: actions/checkout#334 (comment) Interestingly, this only happens with v2 and v3 of the action; v1 doesn't encounter this issue. Right now I am just avoiding the issue by using the v1 actions and just not doing anything those old versions cannot handle. |
I believe this fails because docker-in-docker is not officially supported by GitHub actions. GitHub actions make some assumptions about docker networking and shared host volumes that are only true when the runner is running directly on the host, not within a docker container. I can’t confirm without more detailed logs, but take a look at the linked issues in the README |
I'm inclined to say this is something that can't be resolved here. Node is available in this runner, so it seems as though whatever container is running checkout might be hitting what @nmalaguti is pointing out |
Closing as stale, this cant be replicated here and the assumption is that this is a DinD issue upstream |
When trying to use an action that uses nodejs (like action/checkout) inside a Docker container inside the Docker container, it fails with:
GitHubs Runners don't have a problem with finding nodejs inside a Docker container, not does the Runner container when used directly.
The text was updated successfully, but these errors were encountered: