Skip to content

Instantly share code, notes, and snippets.

View Lokawn's full-sized avatar

Harshit Lawaniya Lokawn

View GitHub Profile
@Lokawn
Lokawn / alpine-container.sh
Created August 27, 2024 16:52 — forked from sfan5/alpine-container.sh
Create bootable systemd-nspawn containers with Alpine, Arch Linux or Ubuntu
#!/bin/bash -e
# Creates a systemd-nspawn container with Alpine
MIRROR=http://dl-cdn.alpinelinux.org/alpine
VERSION=${VERSION:-v3.20}
APKTOOLS_VERSION=2.14.4-r0
wget_or_curl () {
if command -v wget >/dev/null; then