Reputation: 67
If I'm running multiple docker containers from a single image on a linux machine where docker is installed (only single machine, so no docker-swarm). Do I need to provide any specific load balancing configuration to docker in order to utilize all the containers?
If docker does that without any additional configuration then what load balancing policy it uses?
Upvotes: 1
Views: 2099
Reputation: 12109
You need to have a reverse proxy container, like nginx, traefik, etc... Docker itself does not load balance, you can't even bind multiple containers to the same port outside swarm mode.
PS. You can use swarm mode with only one machine (without VM), it would be a single manager node. In additional to the built-in load balancing feature, you also benefit from better abstracts (tasks, services, stacks...).
Upvotes: 2