[FEATURE]: official Docker image for Opencode to enable consistency across environments and augment autonomy #6898

Open
opened 2026-02-16 18:05:32 -05:00 by yindo · 6 comments
Owner

Originally created by @didier-durand on GitHub (Jan 20, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

It is important for consistent runs of same agent across multiple environments to have an official Docker image that can be used anywhere. Running Opencode in a container also allows maximum autonomy and capacity to give maximum freedom in tool use and data access as it is isolated as much as as needed (fully or via mounted volumes for partial access) from the host machine.

Also, the same image used everywhere allows creation / validation of agent on dev laptop and then productive use of same agent on on-prem server or cloud service with guarantee of consistency (and reduced setup issues).

Originally created by @didier-durand on GitHub (Jan 20, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request It is important for consistent runs of same agent across multiple environments to have an official Docker image that can be used anywhere. Running Opencode in a container also allows maximum autonomy and capacity to give maximum freedom in tool use and data access as it is isolated as much as as needed (fully or via mounted volumes for partial access) from the host machine. Also, the same image used everywhere allows creation / validation of agent on dev laptop and then productive use of same agent on on-prem server or cloud service with guarantee of consistency (and reduced setup issues).
yindo added the discussion label 2026-02-16 18:05:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9132: Official Docker Sandbox Template for docker sandbox run opencode - Also requests an official Docker solution for running OpenCode in containers with consistency and safety across environments.

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #9132: Official Docker Sandbox Template for `docker sandbox run opencode` - Also requests an official Docker solution for running OpenCode in containers with consistency and safety across environments. Feel free to ignore if this doesn't address your specific case.
Author
Owner

@ilteoood commented on GitHub (Feb 1, 2026):

For sure the documenttion can be improved, but the project already has an official docker image: https://opencode.ai/docs/#windows

Image
@ilteoood commented on GitHub (Feb 1, 2026): For sure the documenttion can be improved, but the project already has an official docker image: https://opencode.ai/docs/#windows <img width="1705" height="515" alt="Image" src="https://github.com/user-attachments/assets/baf765fd-fc06-499e-a142-b170941185c9" />
Author
Owner

@didier-durand commented on GitHub (Feb 2, 2026):

@ilteoood : will the OpenTelemetry collector package be included in the image at some point to allow observability for autonomous agents running alone on the cloud with Opencode telemetry option active?

@didier-durand commented on GitHub (Feb 2, 2026): @ilteoood : will the OpenTelemetry collector package be included in the image at some point to allow observability for autonomous agents running alone on the cloud with Opencode telemetry option active?
Author
Owner

@ilteoood commented on GitHub (Feb 2, 2026):

I have no idea, but I've been working on a PR to allow anyone to easily customise the image on boot

@ilteoood commented on GitHub (Feb 2, 2026): I have no idea, but I've been working on a PR to allow anyone to [easily customise the image on boot](https://github.com/anomalyco/opencode/pull/11629)
Author
Owner

@didier-durand commented on GitHub (Feb 2, 2026):

Yes, being able to customize the image is key: some like me need Otel while others don't but have other needs.

@didier-durand commented on GitHub (Feb 2, 2026): Yes, being able to customize the image is key: some like me need Otel while others don't but have other needs.
Author
Owner

@kamil-kielczewski commented on GitHub (Feb 4, 2026):

You can do this docker sandbox run claude but you cant do this docker sandbox run opencode - details here

@kamil-kielczewski commented on GitHub (Feb 4, 2026): You can do this `docker sandbox run claude` but you cant do this `docker sandbox run opencode` - details [here](https://github.com/anomalyco/opencode/issues/9132#issuecomment-3845674346)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6898