- Be on a Debian host.
- Install debootstrap.
- Have docker.
- Do this, but replace all instances of bullseye with whatever version of Debian you want.
.
$ debootstrap --variant=minbase bullseye bullseye-minbase
$ ls
bullseye-minbase
$ tar -C bullseye-minbase -c . | docker import - bullseye-minbase
Done.
https://wiki.debian.org/Debootstrap
https://docs.docker.com/develop/develop-images/baseimages/