Skip to content

Instantly share code, notes, and snippets.

@polynomialspace
Created February 17, 2019 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polynomialspace/9ccfa7c922d4acba52e21016889c3ae2 to your computer and use it in GitHub Desktop.
Save polynomialspace/9ccfa7c922d4acba52e21016889c3ae2 to your computer and use it in GitHub Desktop.
Quick command list to create a debian container with systemd-nspawn
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