e2b-dev / E2B

Secure cloud runtime for AI apps & AI agents. Fully open-source.

Home Page:https://e2b.dev/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI Template Build fails after long docker push

jakubno opened this issue · comments

Describe the bug
If your docker image is big and the push takes over ~ 5 minutes, the build fails just after the push.

To Reproduce
Steps to reproduce the behavior:

  1. Prepare a Dockerfile where the sum of layer sizes will be greater 10 GB
  2. Run e2b teplate build
  3. Wait for push
  4. Receive following error:

Terminal commands & output

TypeError: fetch failed
    at node:internal/deps/undici/undici:12618:11 {
  cause: Error: write ECONNRESET
      at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
      at writevGeneric (node:internal/stream_base_commons:138:26)
      at Socket._writeGeneric (node:net:950:11)
      at Socket._writev (node:net:959:8)
      at doWrite (node:internal/streams/writable:588:12)
      at clearBuffer (node:internal/streams/writable:766:5)
      at Writable.uncork (node:internal/streams/writable:523:7)
      at AsyncWriter.write (node:internal/deps/undici/undici:9980:16)
      at writeIterable (node:internal/deps/undici/undici:9915:23)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
    errno: -4077,
    code: 'ECONNRESET',
    syscall: 'write'
  }
}

Desktop (please complete the following information):

  • OS: Tested on iOS and Windows
  • Version: @e2b/cli==0.4.4