From 551072321e2beb97e2fb6a195c40bdc7612cbb51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 18 Oct 2017 09:39:30 +0200 Subject: [PATCH] man: recommend using /var/lib/machines in systemd-nspawn(1) Also update the instruction to latest Fedora version. --- man/systemd-nspawn.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 3951e32e8f..b741a1fff9 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -1075,14 +1075,17 @@ Build and boot a minimal Fedora distribution in a container - # dnf -y --releasever=25 --installroot=/srv/mycontainer \ + # dnf -y --releasever=27 --installroot=/var/lib/machines/f27container \ --disablerepo='*' --enablerepo=fedora --enablerepo=updates install \ systemd passwd dnf fedora-release vim-minimal -# systemd-nspawn -bD /srv/mycontainer +# systemd-nspawn -bD /var/lib/machines/f27container This installs a minimal Fedora distribution into the - directory /srv/mycontainer/ - and then boots an OS in a namespace container in it. + directory /var/lib/machines/f27container + and then boots an OS in a namespace container in it. Because the installation + is located underneath the standard /var/lib/machines/ + directory, it is also possible to start the machine using + systemd-nspawn -M f27container.