Running a server from inside Chroot in ubuntu

Due to the specifics of the application, I am thinking of starting servers such as Apache, Tomcat from the chroot environment. Using schroot and debootstrap, I can create a clone of my 10.04 ubuntu (minimal ubuntu) inside the chroot directory. I install tomcat and apache inside chroot. But how do I access these two servers?

  • Can I access them like regular apache / tomcat installed on the parent server?
  • Can a parent OS access apache / tomcat chroot os?

First, which of these options is possible. Secondly, any reservations that I have to handle with each of these options.

I need something like

 Internet ---> [Main host Ubuntu 10.04 Apache ----> (chroot ubuntu Tomcat)  ]
+3
source share
1 answer

chroot ing - . , , OpenVZ, Xen, KVM, VirtualBox , VMware .

chrooted OS . chroot, localhost (127.0.0.1) , (chrooted ), IP- , .

chrooting "" , (.. , , , , , ..). (.. Chrooted ), .

+2

Source: https://habr.com/ru/post/1788686/


All Articles