prefect.utilities.dockerutils
python_version_minor
python_version_micro
get_prefect_image_name
prefect_version
: An optional override for the Prefect version.python_version
: An optional override for the Python version; must be at the
minor level e.g. ‘3.9’.flavor
: An optional alternative image flavor to build, like ‘conda’silence_docker_warnings
docker_client
build_image
context
: the root directory for the Docker build contextdockerfile
: the path to the Dockerfile, relative to the contexttag
: the tag to give this imagepull
: True to pull the base image during the buildstream_progress_to
: an optional stream (like sys.stdout, or an io.TextIO) that
will collect the build output as it is reported by Dockerpush_image
image_id
: a Docker image IDregistry_url
: the URL of a Docker registryname
: the name of this imagetag
: the tag to give this image (defaults to a short representation of
the image’s ID)stream_progress_to
: an optional stream (like sys.stdout, or an io.TextIO) that
will collect the build output as it is reported by Dockerto_run_command
parse_image_tag
name
: Name of Docker Imagesplit_repository_path
repository_path
: The Docker repository path to split.format_outlier_version_name
packaging.version.parse
validation
version
: raw docker version valuepackaging.version.parse
validationgenerate_default_dockerfile
-
: The context to use for the Dockerfile. Defaults to
the current working directory.BuildError
ImageBuilder
add_line
add_lines
copy
write_text
build
pull
: True to pull the base image during the buildstream_progress_to
: an optional stream (like sys.stdout, or an io.TextIO)
that will collect the build output as it is reported by Dockerassert_has_line
assert_line_absent
assert_line_before
assert_line_after
assert_has_file
PushError