Skip to content

Commit

Permalink
Update v4.5.x docs
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 10, 2024
1 parent 5b8277d commit 1bc67b8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions static/docs/v4.5.x/_sources/contents/containers.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,20 @@ when using the exec command. This works as follows:
location, as it is almost always present and empty in every Linux
distribution (as prescribed by the LSB file hierarchy standard).

Files which should always be present in a container image like ``resolv.conf``
can be specified in ``warewulf.conf``:

.. code-block:: yaml
container mounts:
- source: /etc/resolv.conf
dest: /etc/resolv.conf
readonly: true
.. note::
Instead of ``readonly: true`` you can set ``copy: true``. This causes the
source file to be copied to the container and removed if it was not
modified. This can be useful for files used for registrations.

When the command completes, if anything within the container changed,
the container will be rebuilt into a bootable static object
automatically.
Expand Down
8 changes: 8 additions & 0 deletions static/docs/v4.5.x/contents/containers.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,14 @@ <h2>Making Changes To Containers<a class="headerlink" href="#making-changes-to-c
location, as it is almost always present and empty in every Linux
distribution (as prescribed by the LSB file hierarchy standard).</p>
</div>
<p>Files which should always be present in a container image like <code class="docutils literal notranslate"><span class="pre">resolv.conf</span></code>
can be specified in <code class="docutils literal notranslate"><span class="pre">warewulf.conf</span></code>:</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Instead of <code class="docutils literal notranslate"><span class="pre">readonly:</span> <span class="pre">true</span></code> you can set <code class="docutils literal notranslate"><span class="pre">copy:</span> <span class="pre">true</span></code>. This causes the
source file to be copied to the container and removed if it was not
modified. This can be useful for files used for registrations.</p>
</div>
<p>When the command completes, if anything within the container changed,
the container will be rebuilt into a bootable static object
automatically.</p>
Expand Down
2 changes: 1 addition & 1 deletion static/docs/v4.5.x/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 1bc67b8

Please sign in to comment.