Deploying Java Application With Docker

Hi Guys,

I’m quite new to docker and wondering if anyone can help me with the reference url’s or documents for the below questions:

1.I will be provisioning a VM with Ubuntu 14.04 OS(Host OS). I want all the containers inside the host should use same host OS. Let say in container 1 I will just install and use Apache and its configurations(without OS) and in container 2 tomcat and application code(Without OS). Is it possible ? Is it a best approach ? or do we need to have same OS as a base image in all the containers ?

Thanks in advance.