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 network issue #295

Open
Yongci opened this issue Jan 4, 2024 · 1 comment
Open

Container network issue #295

Yongci opened this issue Jan 4, 2024 · 1 comment

Comments

@Yongci
Copy link

Yongci commented Jan 4, 2024

I have use self-hosted runner execute action workflow.
Found this error:

image

Looks like the runner create a new container and no network mode set.
So, the command RUN apk --no-cache add bash curl npm timeout.

I have try use this command can build successfully.

/usr/bin/docker build -t 0b0279:a2d7cab539024e6597d02780e95bb2f5 -f "/data/actions-runner/_work/_actions/aquasecurity/trivy-action/master/Dockerfile" "/data/actions-runner/_work/_actions/aquasecurity/trivy-action/master" --network host

How to add parameter to the docker build?

@Yongci
Copy link
Author

Yongci commented Jan 12, 2024

Download DB is blocked, It's looks like no network in the Trivy container.
I'm pretty sure my server can connect to ghcr.io, as the Trivy container is set to network=none.

image

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

1 participant