Skip to content

Include docker compose example in docker docs#125

Open
matthewlouisbrockman wants to merge 8 commits intomainfrom
docker-compose
Open

Include docker compose example in docker docs#125
matthewlouisbrockman wants to merge 8 commits intomainfrom
docker-compose

Conversation

@matthewlouisbrockman
Copy link
Contributor

@matthewlouisbrockman matthewlouisbrockman commented Feb 20, 2026

Adds docker compose instructions to the docker page.

  • Creates separate trees for Docker and Docker Compose template/ build/run
  • Docker Compose Example code

Note

Low Risk
Low risk documentation-only change; main risk is inaccurate commands or version assumptions in the new Compose example.

Overview
Updates docs/template/examples/docker.mdx to explicitly separate Docker vs Docker Compose guidance and to reflect that the sandbox can include either.

Adds a full Docker Compose walkthrough (template install, build command, and a run example that writes a compose.yaml and executes docker compose/docker-compose), and updates the Docker template examples to use Ubuntu 24.04 instead of 25.04.

Written by Cursor Bugbot for commit 344ba4c. This will update automatically on new commits. Configure here.

@matthewlouisbrockman matthewlouisbrockman changed the title Docker Compose Example (Draft) Include docker compose example in docker docs Feb 20, 2026
Copy link
Contributor

@beran-t beran-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sync on the ubuntu version in examples
Remove root as its not needed is user is in docker group

import { Template } from 'e2b'

export const composeTemplate = Template()
.fromUbuntuImage('24.04')
Copy link
Contributor

@beran-t beran-t Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are using Ubuntu 24 and 25 interchangeably. We should probably stick to one. Not sure if 24 or 25?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going with 24 for now i guess

@matthewlouisbrockman
Copy link
Contributor Author

k, i guess not need root!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants