Last active
August 29, 2015 14:08
-
-
Save ewindisch/3098fb7dea0f97a49134 to your computer and use it in GitHub Desktop.
Psuedo-PoC hack for running Docker containers from block devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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