circleci-cli
circleci-cli copied to clipboard
Issue running circleci local execute: "error connecting build-agent container to ephemeral network"
- [x] I have read Contribution Guidelines.
- [x] I have checked for similar issues and haven't found anything relevant.
- [x] This is not a security issue (which should be reported here: https://circleci.com/security/)
Do you want to request a feature or report a bug? Bug.
What is the current behavior? I cannot run a local build.
Can you provide an example?
% circleci local execute --job build
Docker image digest: sha256:480880a9a20859b277ee2365e4bdef6c68c0d23c022461d046c630697f771871
====>> Spin up Environment
Build-agent version 1.0.12255-8a4b1a90 (2019-07-26T14:18:48+0000)
Docker Engine Version: 19.03.1
Kernel Version: Linux 2a9e5b0b4b6f 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 Linux
Error:
Unexpected environment preparation error: error connecting build-agent to ephemeral network: error connecting build-agent container to ephemeral network: Error response from daemon: No such container: docker-2a9e5b0b4b6faf141ce9eb0dde8aa51c761135c38b6e73fe0538a65cbe70ab5c.scope
Step failed
Task failed
Error: Unhandled prepare executor error: error connecting build-agent to ephemeral network: error connecting build-agent container to ephemeral network: Error response from daemon: No such container: docker-2a9e5b0b4b6faf141ce9eb0dde8aa51c761135c38b6e73fe0538a65cbe70ab5c.scope
(verbose version: https://gist.github.com/nickray/ba12a07de400f5ad834e98745634a702)
system logs: https://gist.github.com/nickray/ba930e7b1ed5a878a4bfae74a4680ce6
What is the expected behavior? That the error would tell me what I need to fix.
Which version of the CLI and OS are you using? Did this work in previous versions? circleci 0.1.5725+b0a23c0 (diagnostics are OK), Debian Buster, Docker 19.03.1.
Please provide the output of circleci version and circleci diagnostic.
If you have any questions, feel free to ping us at @CircleCI-Public/x-team.
Same problem here:
circleci version: 0.1.5879+416032d (diagnostics are OK)
OS: Fedora 30
cc @KunalJain
Logged as CIRCLE-25053
I am also getting this error on Fedora 32 running the latest version of CircleCI cli and Docker. Was there ever a solution to this error?
The same problem on Fedora 33
#789 is the same issue and has a suggestion for a fix (although it didn't help me).