https://flyte.org logo
#flytekit
Title
# flytekit
t

Thomas Vetterli

12/12/2021, 7:00 AM
hey everyone! any recommendation on how to get the docker image associated with a flyte run id / workflow version?
y

Yuvraj

12/12/2021, 7:29 AM
In flyteconsole navigate to execution page you can see option to
view logs
, Click on it and then check for
task
, Currently in UI it's only available after execution but this is actually a task/workflow spec You can use flytectl for getting any task/workflow spec by version.
Copy code
flytectl get task/workflow --project flytesnacks --domain development <Name of task/workflow>  --version <VERSION> -oyaml
t

Thomas Vetterli

12/12/2021, 6:46 PM
Oh using the -o will include the image?
Nice will try that
I tried flytectl but I think I was not looking at the tasks
y

Yuvraj

12/13/2021, 6:02 AM
Are you getting any error ?
t

Thomas Vetterli

12/15/2021, 9:45 PM
not found the gcr image yet
need to try again!
y

Yuvraj

12/16/2021, 8:57 AM
task definition has gcr image for example try this
Copy code
$ flytectl register examples   -p flytesnacks -d development --version v0.2.247
$ flytectl get task --project flytesnacks --domain development core.flyte_basics.task.square  --version v0.2.247 -ojson | jq -c '.closure.compiledTask.template.container.image'
👍 1
cc: @Prafulla Mahindrakar
28 Views