Prasanth Kothuri
10/27/2021, 4:59 PMAnna Geller
10/27/2021, 5:11 PMflow.run_config = DockerRun(
env={"SOME_VAR": "VALUE"},
image="example/image-name:with-tag"
)
#2 or on the agent
prefect agent docker start --env KEY=value
Kevin Kho
10/27/2021, 5:14 PMPrasanth Kothuri
10/27/2021, 5:18 PMdocker login
and then do docker pull
Kevin Kho
10/27/2021, 5:19 PMbefore_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
As per
<https://docs.gitlab.com/ee/user/packages/container_registry/>
So that it can just docker pull
Prasanth Kothuri
10/27/2021, 5:37 PMKevin Kho
10/27/2021, 5:41 PMdocker pull
. So you would authenticate the agent.Prasanth Kothuri
10/27/2021, 5:43 PMKevin Kho
10/27/2021, 5:56 PM