Skip to content

Commit 33c6cec

Browse files
Add instructions on deleting old docker volumes to Veritas README
1 parent b180012 commit 33c6cec

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tools/veritas/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ Running veritas requires docker (or another container runtime).
1212
1. Run `bash build_images.sh` to create the Docker images Veritas uses locally
1313
- This only needs to be done when running Veritas for the first time or after an update to Verus that upgrades its Rust version.
1414
2. Run `bash run.sh path_to_run_configuration.toml`. There is an example run configuration in this directory.
15-
- Running that command will start an ephemeral container and will create four permanent docker volumes: `verus-veritas-cargo-cache`, `verus-veritas-repo-cache`, `verus-veritas-rustup`, `verus-veritas-z3-cache`. These volumes cache dowloaded repositories, binaries, and other files, to reduce unnecessary traffic when performing multiple runs.
15+
- Running that command will start an ephemeral container and will create four permanent docker volumes: `verus-veritas-cargo-cache`, `verus-veritas-repo-cache`, `verus-veritas-rustup`, `verus-veritas-z3-cache`. These volumes cache dowloaded repositories, binaries, and other files, to reduce unnecessary traffic when performing multiple runs.
16+
17+
After an update to Verus that moves to a new version of Rust, Veritas may leave several obsolete volumes that can be removed to free up disk space. To remove these volumes:
18+
19+
1. Run `docker volume ls | grep -E rustup\|cargo` to list all versions of the volumes that cache `cargo` and `rustup`-related files.
20+
- The volume names will have the format `verus-veritas-cargo-<version number>-cache` and `verus-veritas-rustup-<version number>`.
21+
- You may also see volume names without version numbers from older versions of Veritas; these can also safely be deleted.
22+
2. Run `docker volume rm volume_name`, replacing `volume_name` with the names of `cargo` and `rustup` volumes with old version numbers.

0 commit comments

Comments
 (0)