Skip to content

feat: docker api compatibility - #13761

Closed
frantjc wants to merge 8 commits into
dagger:mainfrom
frantjc:docker-api-compatibility
Closed

frantjc wants to merge 8 commits into
dagger:mainfrom
frantjc:docker-api-compatibility

Conversation

@frantjc

@frantjc frantjc commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Add support for experimentalDockerCompatibility: true on Container.withExec() and Container.terminal(), which prompts the Dagger engine to bind a Docker-compatible API on a random available port during the lifetime of the exec/terminal and point Docker clients to it via the DOCKER_HOST environment variable. This is very similar to the way that Dagger-in-Dagger via experimentalPrivilegedNesting: true works.

Only a subset of the Docker API is supported as of writing (the API calls behind docker run and docker run -d -p). Support is provided by mapping Docker API requests to equivalent Dagger functionality, largely provided by github.com/dagger/dagger/engine/engineutil.Client

Aiming to resolve #11710

…ose a partial Docker-API compliant listener inside of withExec/terminal at DOCKER_HOST

Signed-off-by: Alex <[email protected]>
@frantjc
frantjc force-pushed the docker-api-compatibility branch from 4f9c8c9 to cd2e62b Compare July 30, 2026 02:16
@frantjc
frantjc force-pushed the docker-api-compatibility branch from 418fa56 to 31bd81a Compare July 30, 2026 18:57
@frantjc

frantjc commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions Bot closed this Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant