Disable buffer on docker remote

This causes to load otherwise the full tarball into memory
This commit is contained in:
Ettore Di Giacinto 2021-10-25 23:40:13 +02:00
parent f6bb7a9405
commit 144c409908

View File

@ -144,7 +144,7 @@ func (s *SimpleDocker) ImageReference(a string) (v1.Image, error) {
return nil, err
}
img, err := daemon.Image(ref)
img, err := daemon.Image(ref, daemon.WithUnbufferedOpener())
if err != nil {
return nil, err
}