Skip to content

Commit

Permalink
Document workaround for using isolate inside chroot
Browse files Browse the repository at this point in the history
  • Loading branch information
bblackham committed Dec 29, 2019
1 parent eda2c65 commit 8d96482
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions isolate.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,14 @@ filesystem is enabled and mounted. Most modern Linux distributions already
provide cgroup support through a tmpfs mounted at /sys/fs/cgroup, with
individual controllers mounted within subdirectories.

Isolate expects that the root directory "/" is a mount point. When running
isolate inside a chroot, this may not be the case, and isolate may fail with
"Cannot privatize mounts". A workaround for this is to convert the root
directory of the chroot into a mount point using a bind mount, prior to
entering the chroot and running isolate. For example:

mount --bind /path/to/chroot /path/to/chroot

REPRODUCIBILITY
---------------

Expand Down

0 comments on commit 8d96482

Please sign in to comment.