Skip to content

Instantly share code, notes, and snippets.

@niku
Last active September 17, 2015 08:14
Show Gist options
  • Save niku/6a5642131830614f94c7 to your computer and use it in GitHub Desktop.
Save niku/6a5642131830614f94c7 to your computer and use it in GitHub Desktop.
uname -a
cat /etc/debian_version
sudo apt-get update && sudo apt-get install -y binfmt-support qemu qemu-user-static debootstrap
sudo mkdir -p /srv/chroot
cd /srv/chroot
sudo debootstrap --foreign --arch=armhf jessie ./armdev1 http://ftp.jp.debian.org/debian
sudo cp /usr/bin/qemu-arm-static /srv/chroot/armdev1/usr/bin/
sudo chroot ./armdev1
/debootstrap/debootstrap --second-stage
uname -a
cat /etc/debian_version
apt-get update && apt-get install -y git debootstrap
git clone --depth 1 https://github.com/docker/docker.git
docker/contrib/mkimage.sh --dir debian-image --tag niku/debian-armhf debootstrap --variant=minbase jessie http://ftp.jp.debian.org/debian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment