e2b-dev / E2B

Secure open source cloud runtime for AI apps & AI agents
https://e2b.dev/docs
Apache License 2.0
7.02k stars 458 forks source link

CLI Template Build fails after long docker push #356

Open jakubno opened 7 months ago

jakubno commented 7 months ago

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):