19070: Still trying to fix test_with_arvbox
[arvados.git] / doc / _includes / _install_docker_cleaner.liquid
1 {% comment %}
2 Copyright (C) The Arvados Authors. All rights reserved.
3
4 SPDX-License-Identifier: CC-BY-SA-3.0
5 {% endcomment %}
6
7 h2(#docker-cleaner). Update docker-cleaner.json
8
9 The @arvados-docker-cleaner@ program removes least recently used Docker images as needed to keep disk usage below a configured limit.
10
11 Create a file @/etc/arvados/docker-cleaner/docker-cleaner.json@ in an editor, with the following contents.
12
13 <notextile>
14 <pre><code>{
15     "Quota": "<span class="userinput">10G</span>",
16     "RemoveStoppedContainers": "always"
17 }
18 </code></pre>
19 </notextile>
20
21 *Choosing a quota:* Most deployments will want a quota that's at least 10G.  From there, a larger quota can help reduce compute overhead by preventing reloading the same Docker image repeatedly, but will leave less space for other files on the same storage (usually Docker volumes).  Make sure the quota is less than the total space available for Docker images.
22
23 {% include 'notebox_begin' %}
24 This also removes all containers as soon as they exit, as if they were run with @docker run --rm@. If you need to debug or inspect containers after they stop, temporarily stop arvados-docker-cleaner or configure it with @"RemoveStoppedContainers":"never"@.
25 {% include 'notebox_end' %}