Docker Community Forums

Share and learn in the Docker community.

Tomcat Binaries outside the Container

(Mkwalter) #1

Since the docker container does not contain a copy of the host OS which creates a level of consistency for all the containers running on that host. If we wanted to control the version of Tomcat and have some base libraries commonly available could we have the Tomcat binaries on the host and not have them replicated in all the containers?


(Andy Rothfusz) #2

That’s defeating one of the main purposes of separate containers: to keep binaries independent and separate dependencies.

If you really do want to share files (including binaries) between multiple containers, then the “Docker” way to do it is to use shared volumes.