Configuration - Docker mode
The configuration file of a Ponos agent in Docker mode is an extension of the generic Ponos agent. Only the docker
section is added.
docker.volumes
Docker volumes used to launch Arkindex tasks in Docker containers.
docker.volumes.on
Filters Arkindex tasks by Unix shell-style wildcard for which the volume must be added. By default, the volume is added to all Arkindex tasks. Otherwise the volume is only added to the Arkindex task whose slug matches the value.
docker.check_local_cache
Whether to check the local cache to reuse Docker images available on host. Defaults to false
.
docker.shared_process_volume
Whether to store process data of Arkindex tasks using a Docker volume. Defaults to false
.
Example
Below is an example of a YAML configuration file to start a Ponos agent in a Docker mode.
# Generic Ponos agent
...
# Ponos agent in a Docker mode
docker:
network: arkindex_default # Defaults to `None`
dns: # Defaults to `[]`
- dns_server
volumes: # Defaults to `[]`
- src: /path/to/ark/ml-classifiers # Required
dest: /arkindex/classifiers # Required
"on": ml_* # Defaults to `None`
mode: ro # Defaults to `rw`
registries: # Defaults to `[]`
url: https://docker.registry.com # Required
username: teklia # Required
password: Sup3rS3cret # Required
fake_gpus: # Defaults to `[]`
- id: GPU-26581030-aeb7-4eb7-9193-3e1b60ddf11a # Required
name: Fake GPU # Required
ram_total: 42 # Required
check_local_cache: true # Defaults to `false`
shared_process_volume: true # Defaults to `false`