aws-cdk-examples repo PR build is failing with an error - Cannot connect to the Docker daemon #769
Labels
bug
This issue is a bug.
language/dotnet
Related to .NET examples
needs-triage
This issue or PR still needs to be triaged.
p1
Describe the bug
aws-cdk-examples repo PR build is failing while bundle Lambda function code using DOTNET_CORE_3_1.BundlingImage.
build error message - docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
As per online article, need to set privileged environment variable to true in the synth definition - https://docs.aws.amazon.com/cdk/api/v2/dotnet/api/Amazon.CDK.Pipelines.html#cannot-connect-to-the-docker-daemon-at-unix-var-run-docker-sock (search for error message - "Cannot connect to the Docker daemon")
Expected Behavior
Lambda bundle command should bundle the code and PR build should pass.
Current Behavior
PR build is failing. Failed build job - https://github.com/aws-samples/aws-cdk-examples/actions/runs/3364394111/jobs/5578699844
Reproduction Steps
Re-run the PR build.
Possible Solution
As per online article, need to set privileged environment variable to true in the synth definition - https://docs.aws.amazon.com/cdk/api/v2/dotnet/api/Amazon.CDK.Pipelines.html#cannot-connect-to-the-docker-daemon-at-unix-var-run-docker-sock (search for error message - "Cannot connect to the Docker daemon")
Additional Information/Context
No response
CDK CLI Version
2.X
Framework Version
.Net Core 3.1
Node.js Version
Not aware
OS
Not aware
Language
.NET
Language Version
No response
The text was updated successfully, but these errors were encountered: