Hey <@ULVA73B9P>, Is there a way to get more verbo...
# ask-marvin
r
Hey @Marvin, Is there a way to get more verbose docker building logs when leveraging prefect-docker to build docker images?
Copy code
DockerImage(
                name=f"{REPOSITORY_PATH}",
                tag="hello_flow",
                dockerfile="Dockerfile.prefect",
                platform="linux/arm64",
            ),
m
To achieve more verbose docker build logs when using Prefect's
DockerImage
, you might need to adjust logging directly via Docker settings or within your Prefect context. However, there isn't a direct Prefect setting specifically for increasing verbosity during docker builds in the
prefect-docker
package as of the latest documentation. For detailed control over docker build logging, you could consider the following approaches: 1. Adjust Docker's Verbose Mode: You can run Docker in verbose mode by setting the
DOCKER_BUILDKIT
environment variable. It might not be directly related to Prefect, but it's useful if you need more details about what's happening during the build process:
Copy code
bash
   export DOCKER_BUILDKIT=1
2. Customize Docker Commands: If Prefect allows adding custom options to the Docker build command, you might append options for verbose output. This typically involves altering the Docker build step or using shell execution steps to invoke Docker with specified verbosity. Documentation to further explore: - Prefect Docker Integration - Prefect 2.x - Prefect Docker Deployment - Prefect 3.x Considering that “verbose docker logs” isn’t a common feature request directly documented in Prefect’s resources, you might also want to keep an eye on the Prefect community forums or GitHub discussions for any user-contributed scripts that provide additional log insights. And remember, if all seems dark and dreary in the land of Docker verbosity, don't forget to enjoy a cup of tea; sometimes coding clearly is one cup away!