In a powershell module there is a class with the following method (here simplified). It simply calls docker to automatically build an image.
Everything works and the image is correctly built. What I cannot understand is why the logs from docker are not printed in the console (as they do if I call the same docker command directly instead of inside a powershell module).
[void] BuildImage() {
$imageId = ...
docker build -f ../Dockerfile . -t $imageId
}