Skip to content

✨ Import image from local container runtime #10737

Closed

Description

@jedevc

Essentially, the opposite of #8025.

We should be able to import images from the local container runtime. Probably under the Host API, so something like dag.Host().Container("<imagename>"). That matches up with how we load files/directories already.

This way, it would be possible to do something like:

$ docker image ls
REPOSITORY                    TAG        IMAGE ID       CREATED          SIZE
my-img                        latest     d4a4cfe3b1dd   2 minutes ago    23.4MB
$ dagger shell
> host | container "my-img" | with-exec echo,"executed in the context of this host image!"

This currently isn't possible (without weird docker save + Container.import hackery)

Related:

Activity

  1. cschar commented on Aug 14, 2025

    @cschar

    this would be great.. i'm googling this and finding its being worked on... right now!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions