November 18

Linux: Fedora – systemd-nspawn

systemd-nspawn - starts a namespace/chroot container environment (A Docker like environment)

1. Create a directory you want to install your container into
	mkdir /opt/DebianJessie
2. debootstrap --arch=amd64 stable /opt/DebianJessie - installs DebianJessie
3. systemd-nspawn -D opt/DebianJessie - start the container as root
	Add a b in front of the D = -bD to start the container without root

Fedora Eg.: dnf --releasever=24 --installroot=/absolute/path/ install systemd passwd dnf fedora-release - to install Fedora

Copyright 2021. All rights reserved.

Posted November 18, 2021 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B