Open lueschem opened 1 year ago
Rootless container build:
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
newcontainer=$(buildah from scratch)
buildah unshare --mount container_root=${newcontainer} bash -c 'mmdebstrap --mode=unshare --include=python3,python3-apt,sudo,netbase,net-tools,iputils-ping,isc-dhcp-client,systemd,systemd-sysv,gnupg,dumb-init --variant=minbase bookworm ${container_root}'
echo ${newcontainer}
Run the container with distrobox:
buildah commit CONTAINER_NAME
distrobox create --image IMAGE_ID --name SOME_CONTAINER_NAME --unshare-all --init
Wish-list
Prototyping