Skip to content

How to add a desk template during self-deployment? #739

Open
@LoverJoker

Description

@LoverJoker

Thanks for open-sourcing this awesome project.

When using self-deployment, I tried to build a template with the file below but it always failed. I then switched to the official e2b.dev environment to try and it also failed. After checking the source code, I found that this API returned an error:

  • e2b.Dockerfile
# You can use most Debian-based base images
FROM  e2bdev/desktop:latest
  • Error
{
  data: {
    buildID: 'dd5e1807-2ca3-498c-8195-a3d6ca621e51',
    logs: [],
    status: 'error',
    templateID: 'msm0f7gzzihk5imiyej5'
  },
  response: Response {
    status: 200,
    statusText: 'OK',
    headers: Headers {
      'content-type': 'application/json; charset=utf-8',
      date: 'Fri, 06 Jun 2025 08:00:03 GMT',
      'content-length': '113',
      via: '1.1 google',
      'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
    },
    body: ReadableStream { locked: true, state: 'closed', supportsBYOB: true },
    bodyUsed: true,
    ok: true,
    redirected: false,
    type: 'basic',
    url: 'https://api.e2b.app/templates/msm0f7gzzihk5imiyej5/builds/dd5e1807-2ca3-498c-8195-a3d6ca621e51/status?logsOffset=120'
  }
}

Why did this happen?
Also, how do I publish a public template?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions