I am newbie in Docker world. I have been using VirtualBox a lot before and understand everything from its perspective, but now I want to switch to Docker containers instead.
I would be grateful if you could answer my questions.
Is it possible to configure separate network adapter for each container. For example as analogy to VMs. For instance first container would have 2 network interfaces first is local network between container, second is bridge network. Second containe would have only one local network adapter ?
Is it possible to have two containers bridge adapters, so each of container will request my DHCP server to lease IP address the same as bridge adapter in Virtual Box. One container runs Apache2 web server and gets 192.168.0.10 IP from router, another one runs Nginx server and gets 192.168.0.11 IP from router. Than I can forward ports to this IP on my router ?
As I've understood, docker just creates new process group isolated by kernel, and uses chroot to create own working directory from existing root one, so all installed software will be available in container, but when I install new software it will be installed in chrooted directory which is really located somewhere in real root directory but has symbolic links to previously installed software ?
I would be grateful for any answer or help.