I was reading about docker . I have understood that the platform helps in removing dependencies between different software life cycles by combining the dependencies and the software together.
In the website of docker it was written that it is light weight , I didn't get that point as how it can be light weight when it has all the dependencies packaged along with it?
If I have multiple containers in my system that uses the same dependency i.e say we use the same external library in all the containers , will that dependency be installed again and again for all the containers??
I am new to Docker and thus any help would be great to me.
docker is sometimes described as "light weight" in comparison to virtual machines because it:
Of course this is largely marketing speak, "light weight" is neither technical nor specific. Take it with a grain of salt.
If I have multiple containers in my system that uses the same dependency i.e say we use the same external library in all the containers , will that dependency be installed again and again for all the containers??
If you do it properly, your multiple containers will share a common base layer and therefore not have multiple copies of those external libraries occupying disk space.
I have one more question , If I have a number of micro services , then will each micro service take a container ??
Yes, generally you have one main process per container, and a microservice is an independent process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With