Skip to content

Instantly share code, notes, and snippets.

@ewindisch
Last active August 29, 2015 14:08
Show Gist options
  • Save ewindisch/3098fb7dea0f97a49134 to your computer and use it in GitHub Desktop.
Save ewindisch/3098fb7dea0f97a49134 to your computer and use it in GitHub Desktop.
Psuedo-PoC hack for running Docker containers from block devices
$ mount /dev/sdz1 /mnt; mount -t proc none /mnt/proc; mount -t sys none /mnt/sys;
$ docker run -t -i --hostname=$HOSTNAME --cap-add SYS_CHROOT -v /mnt/:/tmp/ busybox chroot /tmp /sbin/init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment