yes thanks , but if I do this, the packages will be installed for each step again, is it possible to use a single venv?
Notice that the venv is Cached on the clearml-agent host machine (if this is k8s glue, make sure to setup the Cache as a PV to achieve the same)
This means there is no need to worry about that and this is stable.
That said, if you have an existing VENV inside the container, just add docker_args="-e
CLEARML_AGENT_SKIP_PIP_VENV_INSTALL
=/path/to/bin/python"
See here: None
BTW: notice that in your example you are probably installing to the system path not the venv path, and to your point specifically, add ENV=CLEARML_AGENT_SKIP_PIP_VENV_INSTALL=$VIRTUAL_ENV
Lastly if you want your agent to Alwoays use the activated Venv inside the container set:
docker_use_activated_venv=true