Hi, how can we change the default docker image for...
# ask-the-community
b
Hi, how can we change the default docker image for a
NotebookTask
? I have been using a
PodTemplate
to set the default docker image for a normal
@task()
, as per the link below. However the
NotebookTask
ignores the
image
setting in the
PodTemplate
, although it does apply other settings such as
VolumeMount
. How do I change the default docker image for a
NotebookTask
without using
pyflyte *--image xxxx run xxxx*
? https://docs.flyte.org/en/latest/deployment/configuration/general.html#using-default-k8s-podtemplates
s
Have you tried sending
container_image
to your
NotebookTask
?
b
Passing in
container_image
to
NotebookTask
does work, but that is a user overriding the docker image in their code which is not what my quesion asked. The question was about changing the default docker image so that users do not have to override the image.
s
Sorry, my bad. Looks like a bug to me. cc @Eduardo Apolinario (eapolinario)
e
b
p
Just chiming in since I'm working on something similar - is this expected behavior? From the docs it sounds like default images aren't supposed to be set by the
default_pod_template_name
. """ Similarly, each k8s container is required to have an
image
. This value will always be overridden by Flyte, so this value may be set to anything. However, we recommend using a real image, for example
<http://docker.io/rwgrim/docker-noop|docker.io/rwgrim/docker-noop>
. """
Have the docs maybe drifted a bit? If not, what is doing/supposed to be doing the overriding?
s
Hey @Dan Rammer (hamersaw)! Could you please provide some clarity here? Why is a user-provided image overridden? Can't a user specify the default image to be used by the pods?
102 Views