summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/containers.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/docs/containers.rst b/lib/spack/docs/containers.rst
index 17609d740e..64ca1df926 100644
--- a/lib/spack/docs/containers.rst
+++ b/lib/spack/docs/containers.rst
@@ -519,6 +519,13 @@ the example below:
COPY data /share/myapp/data
{% endblock %}
+The Dockerfile is generated by running:
+
+.. code-block:: console
+
+ $ spack -e /opt/environment containerize
+
+Note that the environment must be active for spack to read the template.
The recipe that gets generated contains the two extra instruction that we added in our template extension:
.. code-block:: Dockerfile