$ uname -a
Linux debian-9 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 GNU/Linux
$ cat /etc/debian_version
9.0
$ # setup docker https://docs.docker.com/engine/installation/linux/debian/
$ sudo apt-get update
$ sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
$ sudo apt-get update
$ sudo apt-get install -y docker-ce
$ # make raw image
$ sudo apt-get install -y git debootstrap
$ git clone --depth 1 https://github.com/moby/moby.git
$ sudo moby/contrib/mkimage.sh --dir debian-image --tag niku/debian debootstrap --variant=minbase stretch http://ftp.jp.debian.org/debian
$ sudo docker login --username="niku" --password="[MY PASSWORD HERE]"
Content type
Image
Digest
sha256:980179470…
Size
41.7 MB
Last updated
over 9 years ago
docker pull niku/debian