Building Task Execution Environments in a Container
Base Container
Build a container according to the execution environment of a specific task.
clearml-agent build --id <task-id> --docker --target <new-docker-name>
You can add the container as the base container image to a task, using one of the following methods:
- Using the ClearML Web UI - See Default Container.
- In the ClearML configuration file - Use the ClearML configuration file
agent.default_dockeroptions.
Check out this tutorial for building a Docker container replicating the execution environment of an existing task.