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

Docker-In-Docker support by Default #26

Open
wethinkagile opened this issue Apr 7, 2023 · 2 comments
Open

Docker-In-Docker support by Default #26

wethinkagile opened this issue Apr 7, 2023 · 2 comments

Comments

@wethinkagile
Copy link

Is your feature request related to a problem? Please describe.

We need docker in docker, of course!

Describe the solution you'd like

docker daemon should be available by default

Describe alternatives you've considered

building own image

Additional context

@Olgoetz
Copy link

Olgoetz commented May 11, 2023

I am facing the same requirement.
When trying to build my own image, I always encounter:

systemctl start docker
System has not been booted with systemd as init system (PID 1). Can't operate.

@nashafa
Copy link

nashafa commented Jun 22, 2023

Having support on the base runner (or even separate runner) would be great! Currently, the base runner doesn't support using the standard GitHub Actions syntax for running jobs within a container.

What would building a custom image to support this look like? I took a stab at this briefly myself but encountered similar issues to @Olgoetz since we need Docker to be available once the container is running.

Should this be as simple as the following, alternatively installing directly from a package?

FROM quay.io/redhat-github-actions/runner:latest

USER root
RUN dnf -y install dnf-plugins-core
RUN dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
RUN dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
USER $UID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants