Adversarial Robustness Toolbox (ART) on Docker vs Kubernetes vs VMs

A team that wants ART running on a schedule or inside a pipeline needs to choose between a Docker host, Kubernetes and virtual machines. This page sets out when each fits, what each one costs to operate and what to confirm before committing.

On this page

Adversarial Robustness Toolbox deployment: which model fits your team

A single Docker host or virtual machine fits a small team running a few known jobs, such as a nightly evasion test against one fraud model and a monthly poisoning check against a second. Kubernetes fits a team that already operates a cluster and needs to schedule many parallel attack runs across models, datasets and configurations. Keep in mind that the Adversarial Robustness Toolbox repository is a Python library that runs inside a job and exposes no server, so the decision concerns the job or service that imports it: its scheduler, its environment, its GPU access and its access to model files. The library is MIT-licensed and hosted by the Linux Foundation AI & Data Foundation. Its latest release is 1.20.1, published July 7, 2025, so pin the exact version in whichever platform you choose.

A virtual machine is the better answer when container runtimes are disallowed on the hosts, for example when your security baseline forbids installing Docker or a Kubernetes node agent on systems that hold training data. In that case, run ART in a Python virtual environment under a dedicated service account, schedule it with the host's native scheduler, and record the interpreter and package versions in your change records. Before you commit, confirm with your platform team whether the hosts have GPUs, how much memory your largest model needs during an attack run, and whether the scheduler you already use can retry failed runs. A single VM has no failover, so if the job feeds a release gate, plan a second host or a documented rerun procedure first.

Choose Docker on a single host when you want a packaged, repeatable environment without operating a cluster. The image pins the ART version and the framework versions, which matters because ART supports TensorFlow, Keras, PyTorch, scikit-learn, XGBoost, LightGBM, CatBoost and GPy models, and each framework brings its own dependency tree. Choose Kubernetes when you already have a cluster, an admin team, a GPU pool and a secrets policy, and you need many attack runs in parallel as Job objects. Ask your cluster team which namespace quotas, pod security settings and image registry rules apply, because those platform rules will decide how the job runs more than ART itself.

How Docker, Kubernetes and VMs compare on upkeep and availability

This table compares how a self-hosted ART environment is packaged, scheduled, upgraded, backed up and staffed on a Docker host, a Kubernetes cluster or virtual machines. Read each cell as the condition under which that option fits best. ART is a Python library, so the platform mostly decides how much operating work surrounds your test jobs. Confirm the current release on the ART releases page before pinning ART 1.20.1, published July 7, 2025.

FactorDocker hostKubernetesVirtual machines
How ART is packagedOne container image with ART and its framework dependencies, built and tagged by your team. Best for a small, single-team test bench.The same image run as pods, with ART versions pinned in manifests. Best when several teams share one tested build.Full OS image with ART in a Python environment. Best when your security team already audits VM baselines.
How jobs are scheduledJobs start by hand or from cron on the host. Best for scheduled runs that one engineer owns.Jobs run as Kubernetes Jobs or CronJobs with resource requests. Best for many attack runs that need queueing.Jobs run from the VM's cron or a CI runner you configure. Best when the runner already sits on that VM.
GPU accessRequires the NVIDIA container runtime on the host. Best for one or two GPUs in a single machine.Requires the NVIDIA device plugin and GPU node pools. Best when GPU capacity is shared and scheduled across teams.GPU passthrough configured per host. Best when a fixed GPU must stay dedicated to one workload.
High availabilityRestart policies only, so a host failure stops in-flight jobs. Best when test runs can be repeated.Rescheduling across nodes if the cluster has spare capacity. Best when jobs must survive a node loss.Depends on your hypervisor's live migration and failover setup. Best when the virtualization team already runs it.
Upgrade pathRebuild the image, retest and redeploy. Best when upgrades are infrequent and one team owns them.Roll out a new image tag through a deployment with a rollback path. Best when several teams need a staged rollout.Patch the OS and reinstall ART in the environment. Best when OS and library updates follow one change calendar.
Backup scopeBack up the image registry, mounted volumes and config files. Best when results live in a few known paths.Back up cluster state, persistent volumes and manifests. Best when results and configs must be restored together.Back up the whole disk image, including the OS. Best when you need one restore point for the full environment.
Skills neededContainer build and host administration. Best for a small team with Linux and Docker experience.Cluster operations, RBAC and GPU scheduling. Best when a platform team already runs clusters.Hypervisor and OS administration. Best when the infrastructure team manages VMs day to day.
Main cost driversHost hardware, GPU count and engineer time for image rebuilds. Lower when upgrades are infrequent.Cluster fees (managed or self-run), node count and platform staff time. Lower when a cluster already exists.Hypervisor licensing, storage for full disk images and admin time. Lower when VM hosts already exist.

What each option runs: the components and where they sit

Docker, Kubernetes and virtual machines change where the same parts run and who can reach them. Every option runs a Python environment with ART, a job runner, model and dataset storage and a results store.

Python environment with ART

Every option installs ART as a Python library alongside the framework your model was built in. ART lists support for TensorFlow, Keras, PyTorch, scikit-learn, XGBoost, LightGBM, CatBoost and GPy models, so pin the framework version in the image, VM or virtual environment that runs the attacks. Confirm in the ART repository that the library ships no server, container image or Helm chart. If it does not, your team builds those parts. Also check whether your models need a GPU driver or runtime on each host type.

ART repository

Job runner or scheduler

ART is a library, so something else has to start each attack run, pass it a model reference and a dataset, and record the exit status. On Docker this is usually a host scheduler or CI runner, on Kubernetes a Job or CronJob object, and on VMs a cron entry or batch tool your team operates. Decide who owns retries, timeouts and concurrency limits, because a run that restarts halfway can overwrite earlier results. Confirm how your chosen runner handles these settings before you write the runbook.

Model and dataset storage

Model weights and the datasets used for training or evaluation are the inputs every attack reads. Store them where the job can read them but operators cannot silently modify them, and record a checksum for each model file so a result can be tied to the exact weights tested. Some serialized model formats run code when loaded, so load artifacts only from sources your team controls. Confirm which model loaders and file formats your framework version expects.

Results store

Each run produces adversarial examples, robustness metrics and logs. Decide where these land before the first run. Adversarial inputs can reveal how a model behaves, so classify them at the same level as the training data. Keep the run ID, ART version, framework version and model checksum with every result so a blue team can rerun a finding after an upgrade. Ask your team how long results are retained and who can export them.

Trust boundary around weights and data

The trust boundary sits around model weights and training data, and it must stay inside your network. On Docker and Kubernetes, the boundary depends on the host kernel and on the registry, image and volume permissions your platform team sets. On VMs, the boundary is the hypervisor and each guest's own access controls, and every VM is a separate patch target. For each option, confirm who can read the weights from the host, from the registry and from backup copies.

Choosing a deployment path for ART in four questions

The diagram starts with whether container runtimes are allowed on your hosts. If they are not, the path ends at VMs, and the first check is hypervisor access. If runtimes are allowed, the next question is whether isolation rules require VMs anyway. If they do not, ask whether you already run a Kubernetes cluster with GPU scheduling. Teams with that cluster and many parallel ART jobs follow the Kubernetes branch, where the first check is GPU scheduler access. Everyone else lands on a Docker host, which suits a small team with a few scheduled jobs. Confirm the endpoint's first item before reading its section.

Decision path from container runtime policy to Docker, Kubernetes or VMs.

Why framework versions drive the packaging choice for ART

Framework versions decide most of the packaging. ART is one Python library, but it runs on top of whichever of TensorFlow, Keras, PyTorch, scikit-learn, XGBoost, LightGBM, CatBoost or GPy your models use, and each of those brings its own native libraries, GPU driver requirements and Python version limits. A team testing a scikit-learn fraud model on CPU needs a far smaller image and host than a team attacking a PyTorch vision model on GPUs. That difference usually settles the base image, the host sizing and how strictly versions are pinned before anyone compares Docker, Kubernetes and VMs. Ask the model owners which framework and Python versions each model loads under, and write those down before choosing a layout.

Pin ART and its framework versions together, in one lockfile or one image tag, so that any change shows up in review. ART is distributed through PyPI, and the most recent release in our sources is 1.20.1, published July 7, 2025. Confirm whether a newer release exists before you set the pin. Record the ART version, the framework version, the Python interpreter and the CUDA runtime in the same file, for example as exact entries in a requirements.txt or as a lock generated from pyproject.toml. For containers, tag the image with a version that identifies these pins, avoid floating tags such as latest, and store the image digest alongside the lockfile so the build can be traced later.

Reproduce the build on one test host before scheduling any jobs. Rebuild the environment from the pinned files, then run one known ART attack against one known model. Compare the result with a value you recorded by hand on a fixed random seed. If the numbers drift, the cause is often a framework, driver or Python difference, and it is far cheaper to find that on one machine than across a cluster. Repeat the same check after every base image rebuild and every host patch. Before you commit to a layout, ask your platform team which node types they can provide, whether GPU nodes are available, and what driver stack those nodes run.

Upgrades, backups and monitoring for each option

This table compares how upgrades, backups, monitoring, rollback and in-house skills differ when ART runs on Docker, Kubernetes or virtual machines. Read each row across the three options, and note that one-time build work is separated from recurring patching and re-testing. The main takeaway is that all three options need the same ART test evidence, but the host layer you patch, back up and monitor changes with the platform you choose.

AreaDockerKubernetesVirtual machines
UpgradesRebuild the image on a pinned ART release, redeploy, then re-run the test suite before use.Roll a new image through the deployment, and patch nodes and cluster version on a separate schedule.Patch the guest OS and Python environment in place, or rebuild the VM from a versioned template.
Backup: environment definitionBack up the Dockerfile, dependency lockfile and image digest, since a tag alone can change.Back up manifests or Helm values in Git, plus cluster configuration and secret references.Back up a snapshot or template and the package lockfile so the environment can be rebuilt.
Backup: scripts, artifacts, results and logsBack up test scripts, model files, result files and container logs to storage outside the host.Back up scripts and model artifacts from volume or object storage, and export results and pod logs before pods are recycled.Back up the same set from the VM disk, and forward logs off-host so a rebuilt VM keeps its history.
MonitoringContainer health checks, host metrics and log collection, plus exit codes from each test job.Pod restarts, job status and node pressure, collected through the cluster's metrics and logging stack.Host agent metrics, service status and log forwarding, handled the same way as other servers.
RollbackRedeploy a prior image digest kept in the registry, so retention settings matter.Roll back the deployment revision, while node or cluster version rollback needs its own tested procedure.Restore the pre-change snapshot or template, and confirm restore steps and timing in your environment.
Skills to hold in-houseContainer builds, registry management, Linux host patching and Python dependency handling.Cluster operations, manifests or Helm, RBAC and network policy, plus Python and ART test skills.Linux administration, configuration management, snapshot handling and Python environment management.
One-time workImage build, pipeline wiring, test harness setup and a first baseline run of the ART suite.Cluster access and policy setup, job templates, storage and secrets design, then the same harness and baseline.Template build, host hardening, Python environment setup, then the same harness and baseline run.
Recurring workHost OS patching, periodic image rebuilds, and re-running ART tests after each framework change.Node and cluster patching, image rebuilds, and re-running ART tests after each framework change.In-place OS and package patching, template refresh, and re-running ART tests after each framework change.
Confirm with your teamsRegistry retention, backup tooling for hosts, and whether base images pass your scanning policy.Patch window, backup tooling for cluster state, and who owns node upgrades and their approval.Snapshot retention, restore test cadence, and who approves OS patches on test hosts.

Which option fits which team

Research and model validation teams usually run ART from notebooks and scheduled jobs against classic models such as scikit-learn, XGBoost or LightGBM models. They value fast iteration and reproducible runs more than a managed platform. A single Docker host or one VM is often enough at this stage, because one container image can pin the ART version and its framework dependencies while the team reruns experiments without a cluster to maintain.

  • Pinned images: Build one image per ART version so that an evasion or poisoning result can be reproduced later. The latest ART release is 1.20.1, published July 7, 2025, so confirm whether a newer version exists before you pin.
  • Scheduled runs: Cron or a simple job runner on the host is usually enough for periodic attack suites. Confirm that logs and outputs are written to storage that survives container restarts.
  • Shared results: Store reports on a volume that notebook users and reviewers can both read, with file names that tie each result to a model version.
  • Skills in-house: Python packaging, Docker image builds, basic job scheduling and enough ML security knowledge to choose between evasion, poisoning, extraction and inference tests.

Before choosing, answer one question: will these jobs need to scale out as runs grow, or will one host finish the schedule within its window? If they must scale out, plan for Kubernetes, and confirm the storage and scheduling needs with your team first.

How to roll out ART on the option you choose

This sequence takes ART from a pinned version on one host to a scheduled, backed up and upgradeable service on the platform you chose. Each step ends with a check you can audit, so the team confirms the setup works before it expands. The steps are the same whether you choose Docker, Kubernetes or virtual machines, and only the packaging in step two changes.

  1. Pin ART and framework versions

    A platform engineer and the ML engineer who owns the models agree on exact versions of ART, the ML framework your models use (such as TensorFlow, PyTorch, scikit-learn or XGBoost), Python and the base image. Check the ART releases page first to confirm the current release, because the latest release in our research was 1.20.1, published July 7, 2025, and newer versions may now exist. Record the pins in a lock file or image manifest under version control. Done when a clean build from that file reproduces the same versions and the team signs off on the pin list.

  2. Build and test the environment on one host

    The ML engineer builds the ART environment on a single host using your chosen option: a Docker image, a Kubernetes pod specification or a VM image. They then run the ART test suite against your model files on that host. The platform engineer confirms the host can read model artifacts, write results and reach only the networks it needs. Done when the test suite passes on that host and a second rebuild from the same pins produces matching test output.

  3. Add scheduling and secrets handling

    The platform engineer sets how test runs start, using cron on a VM, a Kubernetes CronJob or the scheduler your team already operates. They move credentials for model registries, data stores and cloud storage into the secrets system your organization uses. A security engineer reviews who can read those secrets and which service account runs the job. Done when a scheduled run starts without manual input, fetches its secrets at runtime, and leaves no credentials in images, shell history or configuration files.

  4. Set backups and test a restore

    The storage administrator or platform engineer configures backups for three things: model artifacts, configuration files and test results. They schedule these with the same tooling used for your other infrastructure and set retention to match your records policy. Store the ART version pins from step one with the configuration backup. Done when a restore onto an empty host or new container reproduces a previous run's configuration and results, and the recovery steps are written down.

  5. Define the upgrade routine and retest

    The ML engineer and the security lead write the upgrade routine: change one pin at a time, rebuild the environment, run the full ART test suite against the same model set and compare the results with the last accepted run. The change owner approves an upgrade only when the suite passes and the comparison shows no unexplained changes. Done when a dry run in a non-production copy is recorded with its test output and an approver's sign-off, and the routine is part of your change process.

What buyers ask before choosing a deployment model for ART

What drives the cost of running ART on Docker, Kubernetes or VMs?

The main drivers are the number of environments, the amount of new build work, and how much of the running platform your team takes over. Each option moves cost differently. Docker needs a container build, a registry and host patching. Kubernetes adds cluster operation if you do not already run one, plus namespace, policy and secrets work. VMs need image templates, host hardening and more manual patch cycles. Cost also rises with the number of models and attack categories in scope, the depth of CI and identity integration, and the evidence your security team requires. Ask for a written scope that prices each option separately so you can compare like for like. DeployOpen does not publish a price list, and a quote follows from that written scope.

Which costs are one-time and which recur for ART deployments?

Setup is mostly one-time work: designing the deployment, building the images or VM templates, connecting identity and logging, and running the first security test. Recurring work includes patching the base image and Python dependencies, updating ART when new releases ship, re-running tests after model changes, backups, and monitoring. The balance depends on how often you retrain or replace models and how often the platform underneath changes. Docker and VM setups often push more upkeep onto your team, while Kubernetes adds recurring cluster maintenance unless you already run one. Ask any quote to label each line as one-time or recurring, and to show support, upgrades and continuous testing as separate retainers, since DeployOpen offers those as ongoing services.

Can our own engineers run ART without outside help?

Yes, if your engineers already run Python workloads and at least one container or VM platform, they can deploy ART themselves. ART is an MIT-licensed Python library, so the install itself is ordinary software work. The harder parts are the controls around it: access to model files, logs of attack runs, secrets for cloud accounts, and a repeatable test process a security reviewer can follow. Some teams build the first version in-house and bring in outside help for hardening, documentation or evidence for an assessment. Confirm internally who owns the model data, who approves test runs and who is on call. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms in your infrastructure, so a split where your team runs daily operations is one option to discuss in scope.

What does an ART deployment need from our team?

Plan for four roles: an owner who approves access and scope, a platform engineer for the runtime, an ML engineer who knows the models under test, and a security reviewer who sets rules for credentials, logging and where results are stored. The platform engineer handles hosts, cluster or VM images, network paths and patching. The ML engineer chooses model types, attack categories and data sets. Estimate the time each role gives with your own team, since it depends on model count, release cadence and how often you retest. Also confirm who receives alerts and who signs off on upgrades. A written scope should list these responsibilities on both sides, so gaps appear before work starts.

Does high availability apply to a Python library like ART?

High availability applies to the service around ART. ART is a Python library that your jobs, notebooks or internal services import, so it has no server process of its own to fail over. Availability decisions move to what runs it: the container host or cluster that schedules jobs, the storage for model files and results, and the CI runner or scheduler that starts runs. On Kubernetes you can run multiple worker replicas and set restart policies. On VMs you can cluster the hosts or accept a rebuild window. On Docker, a single host may be enough for batch testing. Decide how much delay your testing schedule can absorb, and ask any quote to state what is backed up and how it is restored.

Does ART ship as a container image or Helm chart?

ART is published as a Python package on PyPI, and its code and releases live on GitHub. Confirm in the repository and release pages whether the project also publishes an official container image or Helm chart before you plan around one. If none is published, your team or DeployOpen builds the image from a base image you approve, pins the ART version and its dependencies, and stores the result in your own registry. On Kubernetes, the Helm chart or manifests are also written and owned by you. Ask any quote to name who owns the image build, the vulnerability scanning step and the chart, and where each artifact is stored. ART package on PyPI

What should a DeployOpen quote include for an ART deployment?

A quote should restate the written scope: the deployment option, the number of environments, the model types and attack categories in scope, identity and logging integrations, backup and restore, documentation, and handover. DeployOpen does not publish a price list, and a quote follows from the written scope. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask the quote to separate one-time build work from recurring retainers for support, upgrades and continuous testing. Also ask what a scope change would do to cost and timing, and who holds the cloud accounts, secrets and images after handover.

How do we upgrade ART safely without breaking models?

Upgrade ART by pinning the version, testing the new release in a non-production environment against a fixed set of models and attacks, and promoting it only when results match your expectations. ART 1.20.1, published on July 7, 2025, is the release to compare against, and the releases page shows whether anything newer has shipped. Pin the library and its dependencies in a lockfile, rebuild the image or VM template from that lock, and keep the previous artifact so you can roll back. Record which version produced each result so evidence stays traceable across upgrades. DeployOpen offers upgrades as part of ongoing support, and the steps can be written into the scope. ART releases page

How DeployOpen scopes, delivers and supports ART deployments

DeployOpen plans, implements and hardens self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks, and the Docker, Kubernetes or virtual machine choice for Adversarial Robustness Toolbox (ART) is part of that written scope. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. We do not publish a price list, so the quote follows from the written scope.

How we scope

  • The written scope records which hosting model you pick for ART: Docker, Kubernetes or virtual machines.
  • Scope also lists the ML frameworks in use, such as PyTorch, TensorFlow or scikit-learn.
  • Deliverables, timelines and any retainer for upgrades or continuous testing are agreed in writing before work starts.

How we build

  • We plan and install ART on the chosen runtime inside your cloud account, data center or air-gapped network.
  • Integration with your identity and logging systems, and hardening, follow the agreed scope.
  • Security testing of the service that exposes ART can be included in scope, covering application, API and infrastructure layers.

How we hand over

  • Handover documents the topology, upgrade path, backup steps and access controls for the chosen runtime.
  • Evidence for compliance assessments, such as configuration records and audit logging settings, is prepared for your reviewers.
  • Backup and restore procedures are documented for the artifacts ART produces, so your team can run them without us.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing like the original work.
  • Upgrades follow ART's GitHub releases and PyPI versions, and you confirm the version you need before work starts.
  • Continuous testing retainers can re-check robustness results after model or runtime changes, with the scope agreed in writing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.