Guest User

Untitled

a guest
Dec 13th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. sudo debootstrap --no-merged-usr stable /container/1 # get a root file system
  2. unshare --mount --uts --ipc --net --fork --user --map-root-user /bin/bash
  3. chroot /container/1 /bin/bash
  4. unshare --pid --fork /bin/bash # Just to have PID=1
  5. mount -t proc none /proc
  6. mount -t sysfs none /sys
  7. mount -t tmpfs none /tmp
  8.  
  9. $ unshare --fork --user --map-root-user
  10. # debootstrap stable /container/2
  11. mknod: /home/mocc/test2/test-dev-null: Operation not permitted
  12. E: Cannot install into target '/home/mocc/test2' mounted with noexec or nodev
Add Comment
Please, Sign In to add comment