systemd-nspawn makes containers easier for devops

Posted by & filed under Programming & Sysadmin, Web development.

Here is a simple way to quickly create three (or more) containers running apache/php/sshd using systemd-nspawn. Everywhere it says “username” below, change to your username. cd ~username su – Create the container root: mkdir fake1 Install fedora into the container root: yum -y –releasever=21 –nogpg –installroot=/home/username/fake1 \ –disablerepo=’*’ –enablerepo=fedora groupinstall “Web Server” Fix the root… Read more »