hey everyone! any recommendation on how to get the...
# flytekit
m
hey everyone! any recommendation on how to get the docker image associated with a flyte run id / workflow version?
g
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
m
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
g
Are you getting any error ?
m
not found the gcr image yet
need to try again!
g
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: @icy-agent-73298
169 Views