#Access Intermediate Container or FS by ID

1 messages · Page 1 of 1 (latest)

blazing minnow
#

This might be a buildctl question but I'm trying to exec into a container (mid pipeline) by ID. Is there any existing tooling to do this type of thing? (Maybe not dagger). Seems like it should be possible, I could do it in docker w/ a docker exec

The full context is that I'm trying to explore the filesystem mid pipeline in an easier way than printing or debugging content like below

test, err := base.Exec(dagger.ContainerExecOpts{Args: []string{"-c", "ls -alr"}}).Stdout().Contents(ctx.ContextWithTimeout(5 * time.Minute))
#

Just rubberducking a little bit here... I think this could be done via export cache to registry, then pull that by sha... trying it out

deep fox
#

Not possible directly yet, but we are planning first-class support for it . @formal tusk has a prototype somewhere