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

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

Closed
CheriseCodes opened this issue Jun 15, 2024 · 3 comments
Closed

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

CheriseCodes opened this issue Jun 15, 2024 · 3 comments

Comments

@CheriseCodes
Copy link

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

Copy link
Contributor

Hello CheriseCodes 👋 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

Copy link
Contributor

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 github-actions bot added the stale label Jul 16, 2024
Copy link
Contributor

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2024
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

1 participant