3 ms·
"Assemble a system out of several containers, don't mash it all up into one - most people don't seem to get this about docker." Care to elaborate on this? Do
by rahimnathwani 11y ago
"Assemble a system out of several containers, don't mash it all up into one - most people don't seem to get this about docker."
Care to elaborate on this? Do you use the linking system described here? https://docs.docker.com/userguide/dockerlinks/ https://docs.docker.com/userguide/dockerlinks/
I mean, your various containers still communicate over IP, right? Just a private IP network within the host, rather than outside?
(Obviously I've never used Docker.)
- cpr 11y agoThe OP just means don't put everything into one container.
- juliangregorian 11y agoYes, except each container has it's own isolated network and explicitly exposes a port that linked containers can listen to. In development I think a lot of people just use --net=host so that all the containers share the host networking stack (at least, I do).