summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2023-12-20 11:54:41 +0100
committerGitHub <noreply@github.com>2023-12-20 11:54:41 +0100
commit7e2e063979a3079d616b03b5d8b3b2c0551977f8 (patch)
tree3926d6ea2dcc82659796b50a5b65739b5c5d4821 /lib
parent16e27ba4a6552f312b8982be0c32c390f4f8479a (diff)
downloadspack-7e2e063979a3079d616b03b5d8b3b2c0551977f8.tar.gz
spack-7e2e063979a3079d616b03b5d8b3b2c0551977f8.tar.bz2
spack-7e2e063979a3079d616b03b5d8b3b2c0551977f8.tar.xz
spack-7e2e063979a3079d616b03b5d8b3b2c0551977f8.zip
containers.rst: small docs improvement (#41792)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/containers.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/spack/docs/containers.rst b/lib/spack/docs/containers.rst
index 0033a081d3..cb0421f2fe 100644
--- a/lib/spack/docs/containers.rst
+++ b/lib/spack/docs/containers.rst
@@ -41,7 +41,7 @@ just have to configure and OCI registry and run ``spack buildcache push``.
spack -e . mirror add --oci-username ... --oci-password ... container-registry oci://example.com/name/image
# Push the image
- spack -e . buildcache push --base-image ubuntu:22.04 --tag my_env container-registry
+ spack -e . buildcache push --update-index --base-image ubuntu:22.04 --tag my_env container-registry
The resulting container image can then be run as follows:
@@ -66,7 +66,8 @@ Linux distribution as long as the libc is compatible.
For convenience, Spack also turns the OCI registry into a :ref:`build cache <binary_caches_oci>`,
so that future ``spack install`` of the environment will simply pull the binaries from the
-registry instead of doing source builds.
+registry instead of doing source builds. The flag ``--update-index`` is needed to make Spack
+take the build cache into account when concretizing.
.. note::