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

Action uselessly requires a running daemon with Kubernetes driver #135

Closed
antoinedeschenes opened this issue Apr 11, 2022 · 1 comment
Closed

Comments

@antoinedeschenes
Copy link

antoinedeschenes commented Apr 11, 2022

Behaviour

Steps to reproduce this issue

  1. Setup a self-hoster runner without any docker daemon.
  2. Use docker/setup-buildx-action with driver: kubernetes

Expected behaviour

docker buildx create should create a new builder instance.

Actual behaviour

Action fails during the Docker info step, as it calls docker version and docker info, both of which expect a running docker daemon.

core.startGroup(`Docker info`);
await exec.exec('docker', ['version']);
await exec.exec('docker', ['info']);
core.endGroup();

Configuration

jobs:
  build-push:
    runs-on: self-hosted
    steps:
      - name: setup buildx
        uses: docker/setup-buildx-action@v1
        with:
          driver: kubernetes
          driver-opts: |
            namespace=my-namespace
            requests.cpu=1
            limits.cpu=1
            requests.memory=1Gi
            limits.memory=1Gi
            nodeselector=kubernetes.io/arch=amd64
            rootless=true

Logs

Example of Docker info step:

$ docker version
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Client:
 Cloud integration: v1.0.22
 Version:           20.10.13
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 10 14:08:43 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true
@antoinedeschenes antoinedeschenes changed the title Action requires a running daemon with Kubernetes driver Action uselessly requires a running daemon with Kubernetes driver Apr 11, 2022
@crazy-max
Copy link
Member

crazy-max commented Apr 11, 2022

Yes this would be covered by #119. cc @tonistiigi

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

2 participants