File: runtime-cache.rst

package info (click to toggle)
subuser 0.6.2-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 4,208 kB
  • sloc: python: 5,201; sh: 380; makefile: 73
file content (16 lines) | stat: -rw-r--r-- 965 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Runtime cache
-------------

The ``runtime-cache`` directory caches information used by subuser while prepairing subusers to be run.

The directory contains a set of subdirectories each named with the Docker image Id of a given installed-image.

Each image directory contains a set of JSON files named with the SHA512 hash of the ``permissions.json`` file that was used to generate the runtime and postfixed with ``.json``.

In summary, the path to a given runtime config might look like ``$HOME/.subuser/runtime-cache/<Docker-image-Id>/<hash-of-runready-image-preparation-Dockerfile>.json``.

Each permissions-specific JSON file caches information needed to run a specific installed subuser image with a specific set of permissions. Each permissions specific JSON file is a valid JSON file containing a single JSON object with the following properites:

 * ``run-ready-image-id`` - the Docker image Id of the image which was prepaired for running that subuser.
.