eksctl-io / eksctl

The official CLI for Amazon EKS
https://eksctl.io
Other
4.87k stars 1.4k forks source link

[Bug] `make -f Makefile.docker build-test` fails #7839

Closed CheriseCodes closed 1 month ago

CheriseCodes commented 2 months ago

What were you trying to accomplish?

Run the build-test script in Makefile.docker

What happened?

I ran make -f Makefile.docker build-test and the container returned the error docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.. I then ran docker run --volume=/path/to/repo/eksctl:/src --rm -it public.ecr.aws/eksctl/eksctl-build:833f4464e865a6398788bf6cbc5447967b8974b7 /bin/bash to investigate. I ran ps auxw to view running processes and got:

PID   USER     TIME  COMMAND
    1 root      0:00 /bin/bash
   20 root      0:00 ps auxw

I then tried to view the service status with service and systemctl but both commands were missing.

d9e2c70ef4a3:/src# systemctl status docker
bash: systemctl: command not found
d9e2c70ef4a3:/src# service docker status
bash: service: command not found

How to reproduce it?

Run make -f Makefile.docker build-test from root directory

Logs

% make -f Makefile.docker build-test            
time docker run \
      --tty \
      --rm \
      --volume=/path/to/repo/eksctl:/src \
        public.ecr.aws/eksctl/eksctl-build:833f4464e865a6398788bf6cbc5447967b8974b7 make build-test
go: downloading github.com/dave/jennifer v1.7.0
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/aws/aws-sdk-go-v2 v1.27.1
go: downloading github.com/aws/aws-sdk-go-v2/service/eks v1.43.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.156.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.28.6
go: downloading github.com/kris-nova/logger v0.2.1
go: downloading k8s.io/api v0.29.0
go: downloading k8s.io/apimachinery v0.29.0
go: downloading k8s.io/client-go v0.29.0
go: downloading k8s.io/kubelet v0.29.0
go: downloading sigs.k8s.io/yaml v1.4.0
go: downloading github.com/aws/aws-sdk-go-v2/service/autoscaling v1.40.5
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudformation v1.50.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudtrail v1.39.2
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.35.1
go: downloading github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.24.4
go: downloading github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.30.5
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.32.0
go: downloading github.com/aws/aws-sdk-go-v2/service/outposts v1.38.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ssm v1.49.5
go: downloading github.com/aws/smithy-go v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2
go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.8
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/google/gofuzz v1.2.0
go: downloading sigs.k8s.io/structured-merge-diff/v4 v4.4.1
go: downloading k8s.io/utils v0.0.0-20240102154912-e7106e64919e
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2
go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.8
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd
go: downloading golang.org/x/net v0.24.0
go: downloading github.com/json-iterator/go v1.1.12
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
time docker run \
  --tty \
  --rm \
  --volume=/src:/src \
    public.ecr.aws/eksctl/eksctl-build:833f4464e865a6398788bf6cbc5447967b8974b7 make build-test
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
Command exited with non-zero status 125
real    0m 0.02s
user    0m 0.01s
sys 0m 0.01s
make: *** [Makefile.docker:83: build-test] Error 125
       85.15 real         0.06 user         0.04 sys
make: *** [build-test] Error 2

Anything else we need to know?

OS: Darwin MacBook-Pro.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 x86_64

Versions

$ eksctl info

N/A

github-actions[bot] commented 2 months ago

Hello CheriseCodes :wave: Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 5 days with no activity.