Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion content/en/docs/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ runs. It then downloads every layer and the config blob that
is not already in the store, three at a time, each checked
against its sha256 digest while it streams: a blob is written next to its final
name and renamed only once verified, so an interrupted download never passes for
a complete one, and a download cut short takes its part file with it. It says of
a complete one, and a download cut short takes its part file with it. A registry
that answers it is busy, with 429 Too Many Requests or a 5xx error, is asked again
after 1, 2, 4 and 8 seconds before the pull gives up and says so; any other refusal
ends it at once. It says of
each blob when it is downloaded, and then:

1. assembles the root file system with the chosen [backend](#backends): every
Expand Down
13 changes: 11 additions & 2 deletions content/en/docs/machines.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,14 @@ good too, but does not take an `unless-stopped` one off the boot list. A

`-m`/`--memory` (`512m`, `2g`), `--cpus` (`0.5`, `2`) and `--pids-limit` bound
the whole machine: they are the MemoryMax=, CPUQuota= and TasksMax= of its
unit, which is why nothing inside shows them. `--memory` also
unit, which is why nothing inside shows them: systemd-nspawn runs the program
in a cgroup below its unit's, the root of the machine's cgroup namespace,
where `/sys/fs/cgroup/memory.max`, `memory.swap.max`, `cpu.max` and
`pids.max` read `max`. The kernel holds the machine to the limits all the
same, but a program that sizes itself from those files, as Node.js and the
JVM do, takes the host's memory and CPUs for its own and runs into the limit:
give it its size, such as `--max-old-space-size` for Node.js or `-Xmx` and
`-XX:ActiveProcessorCount` for a JVM. `--memory` also
lets the machine use as much swap again (MemorySwapMax=), and no more, unless
`--memory-swap` gives memory and swap together: equal to
`--memory` for no swap, larger for the difference, `-1` for swap without a
Expand Down Expand Up @@ -516,7 +523,9 @@ its unit:
`--interface` keeps `NET_ADMIN` on its own; a name that is no capability is
refused. `--cap-drop ALL --cap-add
NET_BIND_SERVICE` keeps NET_BIND_SERVICE alone, and
`--privileged` keeps every one.
`--privileged` keeps every one. Whatever the set, a program may lock memory
(mlock, mlockall) up to its memlock limit, 8 MiB under systemd's default,
which `--ulimit memlock=` changes.
- `--read-only`: the root read-only. `--tmpfs PATH[:OPTIONS]`: an empty tmpfs
at a path (`size=64m`, `mode=0700`; 1777 when given without options),
which is how a read-only machine still writes `/tmp` or
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Command reference
linkTitle: Reference
weight: 10
description: >-
Every command and option of nspawn 3.3.1.
Every command and option of nspawn 3.3.2.
---

`nspawn --help` and `nspawn COMMAND --help` list the options; this page
Expand Down
2 changes: 1 addition & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ params:
privacy_policy: /about/#privacy

# Version of nspawn the documentation describes.
version: 3.3.1
version: 3.3.2
archived_version: false

# In-page links to open issues and suggest changes.
Expand Down