Prasanth Kothuri
10/27/2021, 4:59 PMAnna Geller
flow.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
Anna Geller
Kevin Kho
Prasanth Kothuri
10/27/2021, 5:18 PMdocker login
and then do docker pull
Kevin Kho
Kevin Kho
before_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 PMPrasanth Kothuri
10/27/2021, 5:39 PMKevin Kho
docker pull
. So you would authenticate the agent.Prasanth Kothuri
10/27/2021, 5:43 PMKevin Kho