Hello! I have a simple question, how can we pass a...
# prefect-community
a
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
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
ok thanks I will have a look