#get Last filesystem from the dagger-engine image

1 messages · Page 1 of 1 (latest)

warm monolith
#

I just want to print out the filesystem from dagger-engine image.

I've noticed that if I get into the docker image like

docker exec -ti dagger-engine-8d8bdc86d448fd7b /bin/sh

I can then find my filesystem in

/var/lib/dagger/runc-overlayfs/snapshots/snapshots/{some-number}/fs

Is there a conventional way to get the latest snapshot?

wanton orchid
#

👋 what are you trying to achieve?

#

I'm not sure what you mean by "print out the filesystem"

warm monolith
#

I wand to avoid do to

sdk = sdk.
    WithExec([]string{"ls", "-la"})

for debugging.

So my goal is to check what's the filesystem after my build, only for debug purposes.

wanton orchid
#

gotcha. You can do sdk.Directory().Entries or you can also use sdk.Export() to export the contents of a path to your local machine

#

does that help?

#

if you want the complete filesystem, there's a RootFS call at the container level also

#

sdk.Container().From("alpine").RootFS() > You can then call Export or Entries on this.