https://prefect.io logo
a

Adrien Boutreau

10/20/2020, 2:22 PM
Hello! I have a simple question, how can we pass a parameter from Prefect UI to a container ? We are using this code https://docs.prefect.io/core/examples/functional_docker.html but our job inside container take a parameter that we put in prefect UI
j

Jim Crist-Harif

10/20/2020, 2:50 PM
Hi Adrien, can you expand on what you want here? Are you asking how to take a value registered as a
Parameter
in a flow and pass it on to a docker container managed by tasks in the flow? If so, you might pass it in to the container as either an environment variable, or as an arg in the containers
command
. See https://docs.prefect.io/api/latest/tasks/docker.html#createcontainer for reference.
a

Adrien Boutreau

10/20/2020, 3:03 PM
ok thanks I will have a look
2 Views