Created
February 17, 2019 07:43
-
-
Save polynomialspace/9ccfa7c922d4acba52e21016889c3ae2 to your computer and use it in GitHub Desktop.
Quick command list to create a debian container with systemd-nspawn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/lib/machines | |
debootstrap stable ./debian https://mirrors.kernel.org/debian | |
systemd-nspawn -M debian | |
echo 'deb https://deb.debian.org/debian-security stable/updates main' >> /etc/apt/sources.list | |
apt update && apt -y upgrade | |
apt install -y sudo | |
useradd -mUG sudo -s /bin/bash debian #kind of pointless. | |
passwd -d debian |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment