Is the Linux tool chroot
generally usable in a Docker container running in clusters and cloud platforms?
(background) I'm developing an application where I may need to use chroot
inside a Docker container. In a related question I expressed my confusion about chroot
and the SYS_CHROOT
Linux capability, which may or may not be required anymore to run chroot
and may or may not be granted by default by Docker. That's why I think I have to tell system administrators when deploying my applications to specify --cap-add SYS_CHROOT
to Docker in case it's not granted by default. But that's a command line argument of docker run
and I don't know if I can give it for granted that most cloud providers and cluster administrators will be able to grant the SYS_CHROOT
capability to my container. Basically I'm trying to predict issues that a system administrator may encounter when trying to install my application without being able to easily contact me for example.