I tried building some application and for local testing, I thought that it would be nice to just load a tarball containing the image into docker.
Well, it doesn't write the tar file but the call itself seems to result in success.
Here's a function to replicate:
func (m *Ci) ExportTarImage(ctx context.Context) (bool, error) {
return dag.Container().From("alpine").Export(ctx, "/tmp/alpine.tar")
}
And here is the CLI result:
swoidig@SHIMANO-LENOVO ~/p/p/dagger-ci> dagger call exportTarImage
✔ dagger call export-tar-image [2.93s]
┃ true
• Engine: a42af3954cb4 (version v0.9.3)
⧗ 5.02s ✔ 34 ∅ 8
swoidig@SHIMANO-LENOVO ~/p/p/dagger-ci> ls /tmp | grep alpine.tar
# ... nothing here dude
Can someone help me with this?