I am newbie, i need to have apache and tomcat for my java web application running on same machine. do i need to have two separate containers running or i can have one container having both web and app servers running?
Is there a way i can share my containers locally without using docker hub?
Is there a way i can share my containers locally without using docker hub?
I think you mean “images” and not containers.
Yes – you have four options:
On the same machine you can spin up as many containers from the same image with docker run as you like.
You can use docker save or docker export to dump tar files of your images that you can copy between machines.
You could use the open source docker-registry as a replacement for the storage functions of Docker Hub (it does not include the build system or groups or auth).
Eventually you’ll be able to purchase a license for Docker Hub Enterprise, a commercial version of docker-registry.